Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Debug suite for optimised compiled apps.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2009, 10:27 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Debug suite for optimised compiled apps.

Thanks to some features kindly incorporated by Erel into Basic4ppc version 6.80 I've now completed my debugging suite for optimised compiled applications. Up to now when an error occurred in an optimised compiled application there was no indication of the error line number. Now, using my DebugRecompiler utility, when an error occurs on either desktop or device the error line number can be established.

But it's better than that! Up to now (apart from earlier version of my Debug library) there has been no real ability to debug applications on the device apart from adding Msgbox statements. Now when my DebugRecompiler is used with the latest version of my Debug library, included here, optimised compiled applications running on both desktop and device may be halted, single stepped, breakpointed and have their properties and variables inspected and changed and their methods and Subs invoked.

The Debug archive includes an application, DebugDemoLegacy, that demonstrates the Debug library use with IDE or legacy compiled applications.

The DebugRecompiler archive has an application, DebugRecompilerDemo, that demonstates debugging an optimised compiled app and also a tutorial to walk you through the first steps in using DebugRecompiler. This will only work on Basic4ppc version 6.80 or later.

EDIT:- Version 1.7 of the Debug library now has a Watcher that works in the IDE and when legacy compiled on both device and desktop as well as when optimised compiled. See post #6 for details.
Attached Files
File Type: zip DebugRecompiler.1.4.zip (192.5 KB, 53 views)
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 08-04-2009 at 07:37 PM.
Reply With Quote
  #2 (permalink)  
Old 06-17-2009, 07:31 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks agraham!
Trying to debug a failing compiled program using message boxes can be very frustrating. Up until now this was the only choice in many cases.
I'm sure that this library will be very helpful for many of us.
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 06-17-2009, 07:53 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

great work Andrew!
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #4 (permalink)  
Old 07-05-2009, 01:42 AM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi. If you need a copy of the output window just let me know. The DebugRecompiler.exe program cannot find any of the Basic4ppc CSharp files, and my installation is a standard installation, inside c:\program files\anywhere software\basic4ppc desktop. Should I try creating an .inf file and respecify this?
Reply With Quote
  #5 (permalink)  
Old 07-05-2009, 01:59 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I assume that you are receiving a "Basic4ppc installation not found!" error.

This occurs if

The file "Class1.c" is not found in one of these folders
"C:\Program Files\Anywhere Software\Basic4ppc Desktop\Tzor"
or
"C:\Program Files (x86)\Anywhere Software\Basic4ppc Desktop\Tzor"
and there is no "DebugRecompiler.inf" in the same folder as "DebugRecompiler.exe".

OR

If there is a file named "DebugRecompiler.inf" in the same folder as "DebugRecompiler.exe" with an incorrect path as its first line or if it is empty. The presence of "DebugRecompiler.inf" overrides the two default paths above even if its contents are invalid.

I can see no other reasons that might cause this error message.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #6 (permalink)  
Old 08-04-2009, 07:31 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

There is presently little support for debugging in the device IDE apart from the Debugger and Tracer objects in my Debug library. I have extended the Watcher so that it now works in legacy compiled applications, and in the IDE, on both device and dekstop. As with optimised compiled applications you can read and write Global variables, including arrays, and can get and set control properties and run control methods.

At the moment unfortunately, for technical reasons, making the Caller and Runner work in legacy environments is not possible.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #7 (permalink)  
Old 08-12-2009, 04:44 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

The latest version of the Debug library is here http://www.basic4ppc.com/forum/addit...html#post27120.

I have started a new thread as the title of this one no longer reflects the actual capabilities of the Debug library.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 08-12-2009 at 05:09 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug optimised app on device and desktop agraham Share Your Creations 1 01-03-2009 05:08 PM
Debug library agraham Additional Libraries 10 10-15-2008 04:13 PM
Useful Apps? JamesC Chit Chat 8 06-25-2008 11:01 PM
V6-not-optim, V6-Debug, and V6-optimised give not the same nested FOR-NEXT execution dan kabestan Questions (Windows Mobile) 1 01-04-2008 08:17 PM
Debug problem Gale Johnson Bug Reports 4 08-14-2007 08:44 PM


All times are GMT. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0