Results 1 to 6 of 6

Thread: Active debugging process?

  1. #1
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    346

    Active debugging process?

    I'm trying to see how to set up OM to allow me to debug a .dll/plugin while developing. Unfortunately, I do not know if it's possible. Here's the scenario...

    I write out a portion of the program and build the dll. Running OM and trying the program, it crashes somewhere. Unfortunately even with the debug log, it's still a guess in the coding where the crash actually happened, and then figure out why? Is it possible to set up an active debugging sessions, so I can debug/test/etc while developing. I'm growing ever tired of trial and error and wasted time .
    It would be the same as actively debugging a standalone formed app from withing visual studio - but it is possible with a .dll?

  2. #2
    Variable Bitrate heezer7's Avatar
    Join Date
    May 2004
    Location
    IL, USA
    Posts
    284
    In your plugins project properties set the startup item to external program and point that to OM. Now when you hit debug in VS it will start OM automatically with the debugger attached.

  3. #3
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    346
    In your plugins project properties set the startup item to external program and point that to OM. Now when you hit debug in VS it will start OM automatically with the debugger attached.
    With a quick glance around the express version of 2010 and using a class library (.dll) project, the startup object list is blank. I'm not at home so I'm not sure if the pro/ultimate/whatever version I have there is different. With a quick google search, the majority says class libraries can't be changed. Only have express 2010 at work so that could be a reason, but can the forms projects be set to run at an external program? Maybe I can just switch it over to forms to debug and switch back to class library to release? Sorry if it's easy, I'm bored at work though !?

  4. #4
    Variable Bitrate heezer7's Avatar
    Join Date
    May 2004
    Location
    IL, USA
    Posts
    284
    I would guess then it is a feature lacking from the express version. You can also at any time go to Debug | Attach To Process and start debugging any app already running.

  5. #5
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    346
    Correct about the limitations of express version, in fact attaching to a process was removed in 05+ versions of express.

    However, there is a workaround to it. Find your project folder, and inside find the xxx.csproj and open it with notepad. Insert these lines:
    Code:
    <PropertyGroup>
    <StartAction>Program</StartAction>
    <StartProgram>C:\Program Files\openMobile\Open Mobile.exe</StartProgram>
    </PropertyGroup>
    When using VS, just click the debug and it will open OM. However, I think you still must build the .dll and place it in the correct directory first, and when debugging, I can't change anything because the assembly isn't loaded... Maybe the pro version will fix that when I try tonight. I'll update then!

  6. #6
    Variable Bitrate heezer7's Avatar
    Join Date
    May 2004
    Location
    IL, USA
    Posts
    284
    Change the compiler destination to the OM plugins dir. Also in the project options.

Similar Threads

  1. New Debugging Skin, and Logging Example!
    By greenman100 in forum Fusion Brain
    Replies: 10
    Last Post: 07-31-2008, 02:53 PM
  2. New Debugging Skin, and Logging Example!
    By greenman100 in forum FB Skins
    Replies: 0
    Last Post: 04-24-2008, 12:23 AM
  3. Replies: 55
    Last Post: 03-06-2008, 10:31 PM
  4. Debugging
    By JWise1203 in forum CF SDK
    Replies: 5
    Last Post: 06-14-2006, 09:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •