Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
Modify make.nmake file to add the blue part,
xxx.dll xxx.exp xxx.lib : packet-xxx.obj ..\plugin_api.obj
link -dll /PDB:xxx.pdb /DEBUG /out:xxx.dll packet-xxx.obj ..\plugin_api.obj \
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib
After compile, copy xxx.pdb to \ethereal\plugins\0.9.15 directory. Then you can fine the sources.
Chunfang
-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx [mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Tomer Shani
Sent: Tuesday, January 27, 2004 1:17 PM
To: ethereal-dev@xxxxxxxxxxxx
Subject: [Ethereal-dev] (no subject)
A Question regarding the following thread: http://www.ethereal.com/lists/ethereal-dev/200309/msg00479.html
>>Hi,
>>I am writing a plugin DLL under Windows and would like to know if
>>anyone has a good method for debugging plugins.
>>I compile my DLL and copy it to the c:\program
>>files\ethereal\plugins\0.9.15 directory (which seems to be the only
>>place that Ethereal looks for plugins). I can debug the Ethereal code
>>OK, but MSVC++ can't find the plugin sources. I have tried adding the
>>source directory in the options dialog, with no improvement.
>>Regards,
>>Chris Waters
>The trick that I used was to set up a project workspace for the
>plug-in. You've probably already done this. After you have the project
>set up you can specify the ethereal EXE as the executable that hosts
>the DLL in the Debug tab (Project Properties). After you copy the DLL
>(and PDB file) into the plugins directory, you can debug the DLL from
>inside Dev Studio just like you would debug anything else.
>The other option is to put your plugin and the PDB into the plugins
>directory and then specify the plugin in the "Additional DLLs" list in
>the Debug tab for the Ethereal project. If you already have the project
>set up for Ethereal and can debug it, then this is probably the easiest
>way to debug your plugin. The trick is that both the DLL and its PDB
>file have to be placed into the plugins directory. This is how Dev
>Studio knows how to find your source code.
>Enjoy!
>Dave
Could anyone post such a demo workspace for a plugin dll
--
___________________________________________________________
Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx http://www.ethereal.com/mailman/listinfo/ethereal-dev
- Prev by Date: [Ethereal-dev] (no subject)
- Next by Date: Re: [Ethereal-dev] Interface does not show up in the list.
- Previous by thread: [Ethereal-dev] (no subject)
- Next by thread: [Ethereal-dev] (no subject)
- Index(es):