How to debug into the ORMSupportClasses.NET20

Posts   
 
    
Slowhand
User
Posts: 96
Joined: 07-Mar-2006
# Posted on: 11-May-2006 16:17:17   

Hello, I would like to be able to debug into the SD.LLBLGen.Pro.ORMSupportClasses.NET20 and the SD.LLBLGen.Pro.DQE.Oracle10g.NET20 SourceFiles. What things do I have to attend ? ( of course having the source files )

Thank you, Slowhand

Slowhand
User
Posts: 96
Joined: 07-Mar-2006
# Posted on: 11-May-2006 16:44:45   

When I open the "LLBLGenProRuntimeLibraries 1.0.2005.1" Project and compile it, I´ve got an error:

Could not find Type or Namespace DDTek and OracleDbType.

Do you know what´s wrong ?

Thank you, Slowhand

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 11-May-2006 16:58:23   

compile on the command line.

Go to the OracleDQE folder, there you'll find a makefile: makefile10g_20 Open it in notepad. Alter the REFERENCES folder to meet the location of odp.net for 10g on your system. Save.

create copy of make20.cmd, and open that copy in notepad. -keep the 10g lines and append debug to this line: nmake /nologo /f makefile10g_20 so it will become: nmake /nologo /f makefile10g_20 debug

open AssemblyInfo10gDotNet20.cs in an editor and remove the key reference at the bottom. You can also add a reference to your own key.

Ok, go to the ORMSupportClasses folder Open AssemblyInfoDotNEt20.cs and also remove / change the key reference there.

Ok, you're set!

On the command line, first do: vsvars32.bat this will make sure .NET's compiler etc. is reachable.

then, first run the ormsupportclasses build commands using: make20_debug.cmd

this will build the ORMSUpportClasses dll in debug mode, and will create a pdb file. Output is in DotNET2.0\bin

Then go to the OracleDQE folder, and run the make20.cmd copy you made earlier. This should build the 10g DQE.

You now have debug builds of the same assemblies with the same names for the dll's as the official ones. In the folder where you reference your assemblies from, make backup copies of the official ones, then copy the debug builds WITH the pdb files into this folder. Then recompile your project and you should be able to step into the runtime libs.

Frans Bouma | Lead developer LLBLGen Pro
Slowhand
User
Posts: 96
Joined: 07-Mar-2006
# Posted on: 12-May-2006 09:24:22   

Thank you very much Otis !

Slowhand
User
Posts: 96
Joined: 07-Mar-2006
# Posted on: 12-May-2006 10:01:43   

...then, first run the ormsupportclasses build commands using: make20_debug.cmd

I couldn´t find this file in the installation folder and nowhere else ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 12-May-2006 11:33:33   

It's in the ormsupportclasses sourcecode folder.

Frans Bouma | Lead developer LLBLGen Pro
Slowhand
User
Posts: 96
Joined: 07-Mar-2006
# Posted on: 12-May-2006 14:06:51   

It's in the ormsupportclasses sourcecode folder.

Sorry, but I can´t find this file:

 "make20_debug.cmd"

I´ve searched in the " ormsupportclasses sourcecode folder" and on the compl. disk ...

Maybe it has another name ? Will this file be created when I install the registerd version of LLBLGen or do I have to create it ?

I have only installed the LLBLGenPro.msi and deinstall the demo version. This file was send from sales AT llblgen.com

What could be wrong ? Do you need more infos ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 12-May-2006 15:23:58   

No, the file should be included in the sourcecode, but perhaps I didn't add it to the installer. Either way, you can obtain teh sourcecode from the customer area, runtime libraries section, and that .zip does contain the file.

It's however simple to create it: copy the make20.cmd to make20_debug.cmd and add 'debug' to the line nmake /nologo /f makefile_20

Frans Bouma | Lead developer LLBLGen Pro