On 24 April 2008 Chen Yang wrote: > hi Lyon: > You can separate the build and debug. Firstly build drlvm using the > default build.xml. Then you can set for debugging, you can open the > drlvm.sln, then select one interested module, right click on the > module, it will popup the menu, then select the property item, in that > please change the debugging related items: mainly: command(to the > executable), commad line, working directory. Then you can set the > breakpoint in the interested source, click debug of the interested > module's right pop-uped menu, choose "start new instance". It will ask > you that you need to build those sources, just choose "no", and it > will begin to execute. If you want to use the default debug menu in > VS, please set the interested module as the default startup project, > you can see it in the popup menu when right clicked on the interested > module. And the default startup module will be highlighted in bold. > Hope it helps.
There is a whole page on the site about debugging VM and JIT. Take a look at it at http://harmony.apache.org/subcomponents/drlvm/debugging_VM_and_JIT.html > On 4/24/08, Gregory Shimansky <[EMAIL PROTECTED]> wrote: > > On 23 April 2008 lyon wrote: > > > hi all > > > I intend to debug harmony using vs 2003.I open the file "drlvm.sln" > > > under the "\working_vm\build\custom\msvc_2003". I build it ,Oh so many > > > errors! > > > > > > the errors are as follow: > > > fatal error c1083 : can not open inlucde file "apt_atomic.h": No such > > > file or director. > > > fatal error c1083 : can not open inlucde file "apt_dos.h": No such file > > > or director. > > > fatal error c1083 : can not open inlucde file "apt_strings.h": No such > > > file or director. > > > fatal error c1083 : can not open inlucde file "apt_env.h": No such file > > > or director. > > > ......... > > > > Currently MSVS projects are not really useful for building VM. In fact > > they mostly contain a list of files that is useful for debugging and > > types and symbol lookup (which doesn't always work correctly anyway). I > > think Jitrino may be built using the project, all other components cannot > > and you can see why. DRLVM currently uses 3rd party libraries built from > > sources, e.g. APR, that have to be unpacked and compiled before VM can be > > built. MSVS projects don't do this job, so it is better to use standard > > ant build system for VM. > > > > -- > > Gregory -- Gregory
