Re: SolidWorks Add-in DLL creation via Visual Basic



On Wed, 22 Feb 2006 22:33:28 +0200, "Heikki Leivo"
<heikkidotleivo@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello Chris,

Well I dont' know how much specific I can be, but I'll try. You just have a
bug eg. erroneous line of code in your code and you have to fix it, there is
no more sophisticated way than debugging. In your addin class module, find
the function named ConnectToSW. Select the first statement eg. row of code
in the function and hit F9 to toggle a breakpoint on that line. Then hit F5
to start the add-in. Start SolidWorks and the code execution breaks on the
breakpoint, and after that you can run the code row by row by hitting F8.
Select View -> Locals to see the current values of your local variables. Try
to find the row which causes an error, and then fix the code. This process
is called de-bugging. You can also right-click the code and select Toggle ->
Break on all errors, so you don't have to put a breakpoint but instead the
code breaks automatically on a row which causes an error.

Hope this helps!

-h-


Thanks. I got the debugger and my application working. I'm doing
beta testing (with a few brave individuals) and then I will release my
Custom Property tool on the world!!!


===========================================================================
Chris
.



Relevant Pages

  • Re: Page_Load & ButtonClick?
    ... You many not have debugging enabled for the site you are working with. ... the application runs and then stops at my breakpoint. ... browser & without clicking the Button, I came back to the VWD IDE & ... will the Page_Load sub execute first & then will the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Debug COM assembly (VB 2003)
    ... Set breakpoints in the VB.NET assembly's source files and start debugging. ... This happens with and without a breakpoint. ... When trying to attach to the process with debug type "Common language ... optionally register it in the GAC, ...
    (microsoft.public.vsnet.debugging)
  • Re: How to turn off Managed Debugging Assistant in VB.NET (2005)
    ... "Menu Bar:" radio and then select Debug from the drop down. ... "Exceptions" in the right list box and click OK. ... My debugging menu has, ... When stopped at a breakpoint in code: ...
    (microsoft.public.dotnet.languages.vb)
  • Debugging ASP and VS2005
    ... I can break and debug in the ASP code (that I initiated ... When I set the breakpoint in the VS2005 class library and set the code ... On the breakpoint in the managed code I get the message "Break point ... (I would have though debugging the script would have been more ...
    (microsoft.public.vsnet.debugging)
  • Re: debugging multithreaded app
    ... >> i was debugging a multithreaded app, when i stumbled across some weird ... > on encountering the breakpoint? ... If so, why use the hokey busy loop? ... between the functionality in the threads, and the cleanup code. ...
    (microsoft.public.dotnet.languages.vc)

Loading