Debugging Modules
screenscribe
Posts: 33
Has anyone seen any strange behavior in Netlinx Studio around not being able to debug when you've got large comment blocks? I was trying hit a breakpoint in a module I'm building and it just would not catch the program execution even though I was seeing responses from the module in my Diagnostics window. On a whim, I cut out a rather large comment block and put it in a text document separate from the module code. Once I did this, the debugging started working.
Is there some rule about not having extensive comments in modules or code in general?
Cheers,
Matthew
Is there some rule about not having extensive comments in modules or code in general?
Cheers,
Matthew
0
Comments
hmmm... I've never seen this myself. I have found that I have to be carefull about the number of variables I'm watching and/or the size of those variables and/or the size of data I'm trying look at. It's not that it won't do it. But it seems to be very prone to crashing if you stay there too long.
I cannot imagine why a comment would have anything to do with the debugger. starnge...
Thanks for the response, Eric!
Cheers,
Matthew
Thanks for the response, Dave.
Cheers,
Matthew
Not impossible but it?s certainly an adventure. Along with the instance problems that Dave mentioned there are also issues setting breakpoints and stepping through code in a module.
Here?s a post that describes the problem.
http://amxforums.com/showpost.php?p=9446&postcount=1
And here?s a post with sample code that demonstrates the problem:
http://amxforums.com/showpost.php?p=18765&postcount=34
Hopefully someday we?ll see a fix but I?m not holding my breath as this problem has been around for years.
Welcome to the forum?
I think this was definitely a part of the problem that I was seeing. Along the lines of your post, one of the things I would love to see become a part of the debugger is keystroke-based commands. I don't think there's a hotkey to step through each line but it gets tedious have to continuously select Debug...Single Step. To be able to press a function key to step through the next line, it would make debugging so much easier. I also wouldn't mind seeing some better intellisense but I won't hold my breath. As it stands, I'm doing okay with Diagnostics.
Cheers and thanks for the welcome!
Matthew
You can also use the Debug Watch toolbar instead of navigating the menu bar.
Thanks so much!
Cheers,
Matthew