|
Post by EmilHalim on Apr 8, 2016 3:30:47 GMT -5
Hi Tom.
in your opinion , what is the best way to debug PlugIn when run with Basic4GL?
|
|
|
Post by Tom Mulgrew on Apr 8, 2016 6:54:22 GMT -5
Hi,
If you're using Visual Studio to build the plugin DLL, you should be able to use "Attach to process" (in the "Debug" menu) to attach to the Basic4GL process. Something like the following: 1. Open your plugin project in Visual Studio 2. Open Basic4GL 3. Set breakpoints in Visual Studio (e.g. in the ::Load() method) 4. Click Debug->Attach to process, and select the Basic4GL process 5. Switch to Basic4GL, click "File->Plug-in Libraries..." and tick your DLL
The Visual Studio breakpoints should become active as soon as your plugin DLL file is loaded. Then you can debug your DLL like any other program.
Other C++ IDEs (like those based on GCC that use the GDB debugger) should have a similar process. The key is telling it to debug the Basic4gl.exe process, as that's where the DLLs get loaded into.
|
|
|
Post by EmilHalim on Apr 8, 2016 9:22:34 GMT -5
Thanks Tom,
I am using VC++ 2012 , i have followed the procedures above , now how to debug my own function , i must first load the basic program then what ?
|
|
|
Post by EmilHalim on Apr 8, 2016 9:41:39 GMT -5
Ok i discovered it.
thanks for your help
|
|