QUOTE(Hero.Hua @ Nov 7 2003, 08:22 AM)
I want to debug my plugin, but it seems that it is different from debugging a project.
would someone give me any suggestion?
in vc++6.0
One you have your .dll project set up and compiling you then need to go to
Project -> Settings
Then choose the "Debug" tab
Set the Executable for Debug Session to the path of foobar2000.exe and set the working directory to the location of foobar2000.exe.
Make sure that your project is set up to put your .dll in the components folder as part of the build process so that foobar can load it.
With the above in place you simple hit F5 and the debugger will launch foobar2000. Your component will be loaded as part of the foobar startup and you are then free to set breakpoints and debug as needed.
First time you do this you may see a warning about not having symbols for foobar2000.exe, you can simple click OK to this since you aren't worried about debugging the .exe.