Upgraded PropTool, now debug statement doesn't work??
Hi ho. I just upgraded from 2.7.0 to 2.9.3. I have this debug statement in a loop in my program:
debug(sdec(error), sdec(d))
It used to print a bunch of stuff in the "DEBUG Output" window, but now there's only four lines of "Cog0 INIT blah blah" and a new blank window opens, with title "Debugger - Cog 7 (210, 210)". A few seconds later, this new window closes and a "Debug communication lost" alert appears.
How do I get "debug" to print the stuff it used to?
Comments
Propeller Tool hasn't been updated in ages, so you may want to consider PNut (which is painful if you enjoy nice editing environments), or you could run Spin Tools from @Macca. Spin Tools is kept up-to-date with PNut, and if you want, you can call PNute from Spin Tools (I do this a lot). Spin Tools provides a nicer environment than Propeller Tools (x-platform, too), and lets you connect to the latest PNut if you're running Windows (safe assumption given your running Propeller Tool).
Spin Tools: https://maccasoft.com/en/spin-tools-ide/
Still use Prop Tool here, although maybe should move on...
Seen debug do strange things like that before, but usually is because of something bad in the code...
According to Chip, Jeff will be updating Propeller Tool to the latest version of PNut (it's out of date now). I still use PT for coarse editing mostly for the Alt-Drag-Select feature, for the bookmarks, and for the code folding in the editor pane (ST has an outline view but I find the colors in PT helpful). If you don't need those features, you can use Spin Tools and have it call the latest version of PNut so that you can do any kind of debugging. If you need simple debug statements, that's built into Spin Tools and is nice because it's in a scrolling text box, so you can go back through (can't do this with PT without logging the debug session). Marco has added the graphic debug windows as well.
Since I asked him for it I have taken advantage of the External Tools feature in Spin Tools.
This is the setup for compiling with PNut and loading into RAM with debug enabled.
You do have to save the file for external compilation -- something not required inside Propeller Tool, but is required in PNut.
If your Windows paths have spaces be sure to put everything in quotes.
@JonnyMac , I installed SpinTools on my MacBook. I have a P1 project that's awkward to move so it's nice to be able to bring the IDE to it, rather than having to drag it over to the Windows desktop. My P2 project (with the debug issue) is on the back burner for now.
I look forward to your SpinTools presentation Saturday. I may have questions!