Debugging with VS.net 2003 + Attach to Process

Discussion in 'Xbox (Original console)' started by nullChar, Oct 22, 2015.

  1. nullChar

    nullChar Member

    Joined:
    Jan 12, 2012
    Messages:
    17
    Likes Received:
    9
    I'm running WinXP within VirtualBox on Windows 10. I'd like to be able to debug C++ code running on console from within VS.net 2003. Is this possible with a green debug kit?

    I'm building my code against XDK5933, and Xbox Neighborhood can connect with the kit.
    I can deploy my binaries to the console, and execute, but when I attempt to either
    1. Start Debugging in VS
    or
    2. Attach to remote console process, I get the following error message:

    "Unable to start debugging. Unable to start program 'xe:\[MyProjectName]\BinaryName.xbe'"

    Is debugging code only possible with a crystal development kit?
    Is Visual Studio somehow unable to connect to my target kit, while Xbox Neighborhood can?
    Also, is it possible to mod a green debug kit to behave identically to a development kit?

    Thanks!

    EDIT:

    After some fiddling with Property pages, I found that it's necessary to configure VirtualBox's network adapter to "Bridged Adapter." (See: http://www.emuxtras.net/forum/viewtopic.php?f=193&t=4132) It won't work with any other setup.

    So now I can debug a running process, but VS isn't hitting my breakpoints... I'll keep investigating.
     
    Last edited: Oct 23, 2015
    nonosto likes this.
  2. nonosto

    nonosto Gutsy Member

    Joined:
    Jan 5, 2012
    Messages:
    441
    Likes Received:
    13
    Virtualbox, you mean via Win 7 or higher?
     
  3. weinerschnitzel

    weinerschnitzel Spirited Member

    Joined:
    Sep 23, 2012
    Messages:
    138
    Likes Received:
    5
    As long as you have a proper debug enabled BIOS, debugging is all the same for modded Xbox's, debug kits, and dev kits. The real dev kit is really only useful if you want to run your code on an emulated DVD on your dev PC's Raptor card, or for kernel debugging. Always wanted to put the Raptor card in external housing with a USB->PCI adapter and see if I could use it in VirtualBox. One day...

    I just ran a debug session via Bridged Adapter on VirtualBox. Everything worked, including breakpoints, as it should. NAT always worked fine for Xbox Neighborhood, and IIRC FTP transfers were faster. Now, I do remember having issues on an old XP laptop where I could not use the debugger. I want to attribute it to some Windows XP update, or that registry hack that gives you another 5 years of support, pretending your OS is Windows XP Embedded Edition. My current dev environment VBox 5 and "vanilla" XP + SP3 works just fine.

    Hope this helps. What are you tinkering with, btw?
     
  4. nullChar

    nullChar Member

    Joined:
    Jan 12, 2012
    Messages:
    17
    Likes Received:
    9
    @nonosto: Yep, running a WindowsXP SP3 install within VirtualBox on Windows 10.

    @weinerschnitzel Thanks,
    I was ultimately able to get debugging fully working, and I think the problem was related to symbols not being loaded for the xbe being debugged. I had been using a UNC path to my project, because it lived in a folder shared with my host system. Looks like the debugger had a problem with it. Just playing around with the hardware really, and wanting to try a small port of something.

    Cool, now I can have some fun!
    [​IMG]
     
    nonosto likes this.
  5. nonosto

    nonosto Gutsy Member

    Joined:
    Jan 5, 2012
    Messages:
    441
    Likes Received:
    13
    Thank you, do you think work with Win 7 64 bit and Win XP mode for "emulate" XP 32 bit?
     
  6. Borman

    Borman Xbox Archivist Staff Member

    Joined:
    Mar 24, 2005
    Messages:
    8,701
    Likes Received:
    662
    XP mode should work.
     
  7. nonosto

    nonosto Gutsy Member

    Joined:
    Jan 5, 2012
    Messages:
    441
    Likes Received:
    13
    Thanks...I have a XP partiton only for it, and I would llike create a neww HDD without XP partition.
     

Share This Page