magic debugging
Peter Neubauer
peter at neubauer.se
Mon Nov 22 08:52:39 EST 2004
Hi all,
just a small utility - if you want to test in metro, things can get quite hairy setting up the IDE for it. Main problem is all the environment variables set by magci/ant and the file access in many testcases making tweaks to the working dir neccesary.
I found it much easier to debug both magic itself and tests etc. by running magic in debug mode and connecting to it via "Remote debugging" to localhost. Here is the script:
-------------------------------------------------------------------
@echo off
SETLOCAL
set ANT_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
call ant.bat %1 %2 %3 %4 %5
ENDLOCAL
-------------------------------------------------------------------------
You can do the same for Linux.
Cheers
/peter
More information about the dev-dpml
mailing list