How do I debug Visual Basic applications for Bentley InRoads?
Below are the steps for debugging both the In-Process and Out-Of-Process applications: In-Process (Requires MicroSoft Visual C++) • Set the Project Properties before compiling the Visual Basic DLL. • Compile to native code. • Create symbolic debug info. • No optimization. • Windows Task Manager (MicroStation and InRoads have to be open) • Go to process tab, right click ustation.exe, select debug. • VC++ opens • VC++ • Go to File > Open > startform.frm. • Now go to Project Settings > Debug tab > additional dlls and select Visual Basic DLL. • Set breakpoints in the startform.frm. • InRoads • Go to Tools > Run Macro and select Visual Basic DLL. The focus will flip back to VC++ at the breakpoint. • Use VC++ debugging commands to step through code. Out-Of-Process • All you need to do to debug an Out-Of-Process application is, use the Visual Basic debugger commands.