2009. április 17., péntek

Debug a Delphi Expert instaled as a package


Problem/Question/Abstract:

Debugging an Expert can be a tedious task, unless you follow these steps.

Answer:

Ok, here are the instructions.

Open your package.

You have toModify the Project Options: In the Packages tab uncheck your package. In the Compiler tab uncheck Optimization, select the Stack_frames option, an select also the debugger options.

Compile the package.

Select Run-Parameters, select Delphi as the host application, (a package is just a DLL with a fancy extension). Click the Load Button.

Press F9, another instance of Delphi will load, so run your expert from there.

Now you can use the debugger from the first instance of Delphi to debug your expert code running in the second one.

Nincsenek megjegyzések:

Megjegyzés küldése