# Troubleshooting Advice

**URL:** <https://forum.xojo.com/t/troubleshooting-advice/54722>\
**Category:** Getting Started\
**Created:** [July 15, 2020, 8:27pm UTC](https://forum.xojo.com/t/troubleshooting-advice/54722 "2020-07-15T20:27:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clifford\_Coulter](https://forum.xojo.com/user_avatar/forum.xojo.com/clifford_coulter/32/711_2.png) [@Clifford\_Coulter](https://forum.xojo.com/u/Clifford_Coulter)\
**Post date:** [July 15, 2020, 8:27pm UTC](https://forum.xojo.com/t/troubleshooting-advice/54722/1 "2020-07-15T20:27:50Z")

</div>

I’m looking for some troubleshooting advice. Within my code somewhere I’m reverting to a baud rate 13 or 57600 from 8 or 9600. I have attempted to trap the code that makes the change but have had no success. One might think I’ve set a property or constant but I do not find it. Is there a method one might use to detect what is making the change? The serialConnection I’m using is generated in code and then further subclassed.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [July 15, 2020, 8:35pm UTC](https://forum.xojo.com/t/troubleshooting-advice/54722/2 "2020-07-15T20:35:59Z")

</div>

search for “.Baud” and put a breakpoint at each found occurence, then run and see when and where it happens.

---

<div class="post-metadata">

**Author:** ![Norman\_Palardy](https://forum.xojo.com/user_avatar/forum.xojo.com/norman_palardy/32/169_2.png) [@Norman\_Palardy](https://forum.xojo.com/u/Norman_Palardy)\
**Post date:** [July 15, 2020, 8:37pm UTC](https://forum.xojo.com/t/troubleshooting-advice/54722/3 "2020-07-15T20:37:01Z")

</div>

in the base class there’s not much you can do  
basically you have to search your code for any place you might set that property

in the subclasses you could shadow the baud rate property and make it a computed property then put a break point in the setter  
if you only ever use the subclasses in your code then you’ll find it

---

<div class="post-metadata">

**Author:** ![Clifford\_Coulter](https://forum.xojo.com/user_avatar/forum.xojo.com/clifford_coulter/32/711_2.png) [@Clifford\_Coulter](https://forum.xojo.com/u/Clifford_Coulter)\
**Post date:** [July 16, 2020, 12:04am UTC](https://forum.xojo.com/t/troubleshooting-advice/54722/4 "2020-07-16T00:04:22Z")

</div>

> [@496588:@Jean-Yves Pochez](#):
>
> search for “.Baud” and put a breakpoint at each found occurence, then run and see when and where it happens.

Seems rather strange that .baud shows up in only three places and two are rem statements. Go figure. I’ve spent hours trying to locate it but admit it was organically set up to use both baud rates. It became messy with little added benefit due to different delay settings needed to work with the controller it was interfacing with. Recently I backed out all of the 57600 baud code, well almost.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [July 16, 2020, 5:54am UTC](https://forum.xojo.com/t/troubleshooting-advice/54722/5 "2020-07-16T05:54:40Z")

</div>

if you’re seeing you’re typing the same code twice in an app, then you should make a method and call that method.  
easier to maintain when the program gets bigger.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 4:30pm UTC](https://forum.xojo.com/t/troubleshooting-advice/54722/6 "2021-04-29T16:30:01Z")

</div>


