Wintermute Engine Forum

Wintermute Engine => Technical forum => WME sources discussion => Topic started by: Jihar on January 27, 2009, 09:07:25 AM

Title: Debugging
Post by: Jihar on January 27, 2009, 09:07:25 AM
I have a problem with WME debugging. Im trying to make it by the analogy with plugin debugging, but my studio does not want to debug! Is there any special move that i must made before hitting debug? :)
Title: Re: Debugging
Post by: Mnemonic on January 27, 2009, 09:18:17 AM
Hm, not really. You need to set the path to your project in Project Settings->Debugging->Command line arguments. Enter something like:

Code: [Select]
-project "path\to\your\project.wpr"

Then just click "Run with debugging". What problem exactly you're having?
Title: Re: Debugging
Post by: Jihar on January 27, 2009, 09:45:24 AM
Hm, not really. You need to set the path to your project in Project Settings->Debugging->Command line arguments.
Yes, thats the way im trying, but the command in my case is "C:\Program Files\WME DevKit\wme.exe", and arguments like you showed up.
The problem is that, for example, breakpoints does not works. Now i think that wme does not use wme_d3d9.exe.
Title: Re: Debugging
Post by: Mnemonic on January 27, 2009, 09:51:15 AM
You don't want to run "C:\Program Files\WME DevKit\wme.exe", you need to run the compiled exe. Really only change the "Command line arguments" setting, leave the others the way they were (I don't have VS here so I can't tell you the exact names, but it's something like $(OutDir)\$(ProjectName).exe).
Title: Re: Debugging
Post by: Jihar on January 27, 2009, 10:12:25 AM
You don't want to run "C:\Program Files\WME DevKit\wme.exe", you need to run the compiled exe. Really only change the "Command line arguments" setting, leave the others the way they were (I don't have VS here so I can't tell you the exact names, but it's something like $(OutDir)\$(ProjectName).exe).
Thanks! It works! I was trying to make it in that way, but there was some problems, and that was problems on my side.
Thanks again!