Debug optimised app on device and desktop

agraham

Expert
Licensed User
Longtime User
Erel will probably shudder in horror at the sight of this :eek: but here's a rather arcane application, written in Basic4pp, that adds the reporting of the line number that caused an error in an optimised compiled app together with the ability to breakpoint and single step when used with my my Debug library.

I have been looking at debugging on the device ever since the optimising compiler came out and so far my best effort was the Debug library which could look inside compiled apps and set variables and properties but could not control the app in any way. Now it can! Demo app and help for the program are included in the archive.

You will need to download my http://www.b4x.com/forum/additional-libraries/2328-debug-library.html#post12598 (and read the help:)) to play with this.

It is probably a bit rough round the edges as far as error handling goes but it is really only a technology demonstrator for those brave enough to try. I may or may not polish it a bit - that partly depends upon whether Erel has any plans for something similar (or even different :)) in future releases.

My Axim X30 had a good task switcher but my Diamond didn't :( I've recently started using HandySwitcher http://www.b4x.com/forum/questions-help-needed/3186-task-switcher-wm5-6-a.html#post20600 which although not free is cheap and good. Recommended for quick task switching on apps such as the Demo here which has four Forms on the go at once.
 

Attachments

  • OptimisedDebug1.0.zip
    14.9 KB · Views: 259
Top