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.

Debugging suite for IDE, legacy and optimised applications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2009, 04:07 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Debugging suite for IDE, legacy and optimised applications

I have started a new thread for these libraries as the title of the previous thread no longer did justice to the capability available.

Having addressed the issue of debugging optimised compiled applications to my satisfaction I started looking at debugging in the device IDE where presently there is no real capability. With the exception of the Runner the Debug library objects will now work in both legacy and optimised compiled environments letting you examine and change Global variables and control/object properties and run control/object methods and Basic4ppc Subs.

Hopefully debugging in the device IDE will now be a bit easier than before. As noted in the DebugRecompiler Tutorial topic "Advanced usage" the use of a Task Switcher such as HandySwitcher (which is what I use) or Magic Button or similar will greatly ease the use of the Debug library on the device.

EDIT :- Version 2.0 posted for Basic4ppc v6.90 or later. See the following post for details.

EDIT :- DebugDesktop Version 2.0 posted for Basic4ppc v6.90 or later. See post 3 for details.

EDIT :- DebugRecompiler help posted. See post #7 for details.

EDIT :- DebugRecompiler updated to version 2.1. See post #18 for details.

EDIT :- DebugRecompiler updated to version 2.2. See post #19 for details.

EDIT :- DebugRecompiler updated to version 2.3. See post #20 for details.
Attached Files
File Type: zip DebugRecompiler.1.4.zip (192.5 KB, 128 views)
File Type: zip Debug1.8.zip (48.6 KB, 126 views)
File Type: zip DebugDesktop2.0.zip (39.7 KB, 65 views)
File Type: zip Debug2.0.zip (344.7 KB, 45 views)
File Type: zip DebugRecompiler2.3.zip (53.4 KB, 52 views)
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 10-13-2010 at 06:01 PM.
Reply With Quote
  #2 (permalink)  
Old 04-18-2010, 10:42 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Debug 2.0 now offers full functionality on both desktop and device, in both IDEs and when optimised compiled (and DebugRecompiled). Yes, you can now fully debug in the device IDE!

Thanks to Erel who has provided the hooks in Basic4ppc v6.90 for both desktop and device IDEs you can now set breakpoints and single step with the Runner object in both IDEs with version 2.0 of the Debug library. DebugRecompiler 2.0, included in the Debug archive, can cope with typed variables and the other changes in Basic4ppc v6.90. There is a new Recorder object that can write the sequence of code execution in a Sub to a file with variable values and a new Monitor object that combines a sub-set of the Runner and Watcher objects that might be more convenient for some uses as it needs less screen switching in use than when using Runner and Watcher together. The other Debug objects have some enhanced functionality over the previous version. The Debug and DebugTutorial helps have been updated to the new version.

Basic4ppc v6.80 and earlier will not work with version 2.0 so I have left DebugRecompiler 1.4 and Debug 1.8 available.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 04-20-2010 at 05:48 PM.
Reply With Quote
  #3 (permalink)  
Old 06-08-2010, 11:27 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

DebugDesktop library now posted integrates the Watcher, Caller, Runner and Tracer of the Debug library into a single Form to make using the debugger on the desktop more convenient. This library only works on Basic4ppc version 6.90 or later.

As with the Debug library this desktop only library is functional both in the IDE and when compiled. For help see the DebugTutorial and Debug help file contained in the archive for the Debug library version 2.0 or later.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #4 (permalink)  
Old 09-08-2010, 09:26 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
DebugDesktop library now posted integrates the Watcher, Caller, Runner and Tracer of the Debug library into a single Form to make using the debugger on the desktop more convenient. This library only works on Basic4ppc version 6.90 or later.

As with the Debug library this desktop only library is functional both in the IDE and when compiled. For help see the DebugTutorial and Debug help file contained in the archive for the Debug library version 2.0 or later.
I got a compile error on the Demo because the localvar is unnused. Rather than switch off this warning (which I find very useful) I added an extra line to swap the assignment in both modules.

The when I tried to recompile (this is with debug.dll V2 and Basic4ppc version 6.90 ) I got:

Code:
C:\Program Files\Anywhere Software\Basic4ppc Desktop\Tzor>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe /o /noco
nfig /nostdlib /nologo /target:winexe /out:
"C:\Documents and Settings\Owner\Application Data\Anywhere Software\Basic4ppc
\Tzor\1.exe" /define:DEVICE @"C:\Documents and Settings\Owner\Application Data\Anywhere Software\Basic4ppc\Tzor\1.rsp" /
define:AUTOSCALE /warn:1
Other.cs(
310,18): error CS0535: 'Dbasic.CStreamReader' does not implement interface member 'Dbasic.IStream.Flush()'
c:\Documents and Settings\Owner\Application Data\Anywhere Software\Basic4ppc\Tzor\Class1.cs(32,8): (Location of symbol
        related 
to previous error)

Press any key 
to continue . . .
I have no idea what to do about this!

(I am setting out to discover why a usage of a Table sort works OK on both device and PC IDEs, and on PC when compiled, but not as EXE on device.)

Mike.
Reply With Quote
  #5 (permalink)  
Old 09-08-2010, 09:41 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by mjcoon View Post
The when I tried to recompile (this is with debug.dll V2 and Basic4ppc version 6.90
Recompile what? The demo? I'm afraid that I see no problem having inserted "Iterator = localvar" in both modules to keep the compiler happy.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #6 (permalink)  
Old 09-08-2010, 09:48 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

That error would occur with the wrong version of Other.cs. Have you got more than one installed version of Basic4ppc? If so what are the paths to each installation?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #7 (permalink)  
Old 09-08-2010, 10:10 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Having looked in the Debug 2.0 archive I realise that I left out the DebugRecompiler help file. It is now posted as a separate download - I couldn't place it in the archive as when I tried it exceeded the size permitted by the forum for zip files.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 09-08-2010 at 10:29 AM.
Reply With Quote
  #8 (permalink)  
Old 09-08-2010, 11:12 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Recompile what? The demo? I'm afraid that I see no problem having inserted "Iterator = localvar" in both modules to keep the compiler happy.
Sorry, I should have realised that mentioning the change I made could make "recompile" look like a mere "compile again", whereas I meant DebugRecompile, as subsequent messages suggest that you realised.

Mike.
Reply With Quote
  #9 (permalink)  
Old 09-08-2010, 11:18 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
That error would occur with the wrong version of Other.cs. Have you got more than one installed version of Basic4ppc? If so what are the paths to each installation?
Yes, I have both 6.80 and 6.90. Some source files will only compile with one or the other and not both.

Now that you draw attention to it I guess that the message is telling me that the recompiler is making an assumption about where Basic4PPC is installed. I can replicate my 6.90 installation to there and try again... (And read the help file that you have added for the recompiler!)

Mike.
Reply With Quote
  #10 (permalink)  
Old 09-08-2010, 11:25 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by mjcoon View Post
And read the help file that you have added for the recompiler!)
Yes, if your 6.90 is not a default installation but an earlier version is then DebugRecompiler will see the earlier version and try to use that. The Background topic in the help file tells you about a DebugRecompiler.inf file you can make to direct it to the installation you want to use.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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 suite for optimised compiled apps. agraham Additional Libraries 6 08-12-2009 03:44 PM
Include dlls and remote debugging Roadrunner Basic4ppc Wishlist 3 05-06-2009 07:01 AM
Legacy compiler Erel Beta Versions 0 04-24-2009 07:08 AM
Distributing your applications Erel Code Samples & Tips 4 10-20-2007 06:41 AM
help plz with debugging this error.... Stellaferox Questions (Windows Mobile) 7 07-01-2007 02:39 PM


All times are GMT. The time now is 06:54 AM.


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