Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: how to debug the plugin? (Read 4091 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how to debug the plugin?

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
Good good study, day day up, :)
[span style=\'color:red\']The superman is the meaning of the earth.
Let your will say: the superman shall be the meaning of the earth![/span]

how to debug the plugin?

Reply #1
Quote
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.

how to debug the plugin?

Reply #2
sorry, it doesn't work, maybe something wrong
here is my steps :

1.my foobar2000.exe is installed in d:\program files\foobar2000\foobar2000.exe
so, I set the  Executable for Debug Session to the path : d:\program files\foobar2000\foobar2000.exe

2.the work directorty is : d:\program files\foobar2000\

3. in project-->setting , set it to debug mode, and in the "link" tab, set the "output filename": D:\Program Files\foobar2000\components\foo_xxx.dll

4.set active configuration "Debug", then build it

5.debug(go/F5),  there have some wrong in dbgheap.c, and cannt go on.

would you do me a favour?
Good good study, day day up, :)
[span style=\'color:red\']The superman is the meaning of the earth.
Let your will say: the superman shall be the meaning of the earth![/span]

 

how to debug the plugin?

Reply #3
It can work now!!!
thx thx thx a lot lot lot !!!
   
Good good study, day day up, :)
[span style=\'color:red\']The superman is the meaning of the earth.
Let your will say: the superman shall be the meaning of the earth![/span]