CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14
  1. #1
    Join Date
    May 2012
    Posts
    6

    Remote Debugging in Visual Basic 6.0

    Hello everybody!!

    I want to debug my visual basic 6.0 application on the remote computer.

    For example:
    The application and the visual studio 6.0 are existing in computer nr.1, but the result's from debugging I want to see on another computer for example computer nr.2, which is connected on the same LAN network.

    please help

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Remote Debugging in Visual Basic 6.0

    Your app can PRINT LOG STATEMENTS to a file, and save it anywhere it has permission, but that's not the way to go about it.

    Explain why you want to do that, and there just might be a way to do it, that works.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    May 2012
    Posts
    6

    Re: Remote Debugging in Visual Basic 6.0

    http://www.codeproject.com/Articles/...-step-in-the-O

    This is the link where I find solution about remote debugging with visual C++ 6.0. I am asking is it possible this procedure in Visual Basic 6.0 because I am beginner with Visual Basic 6.0, but I am experienced with Visual C++.

    Here is the problem again:

    Computer 1
    -where I am sitting physically and debugging with breakpoints.
    -the Visual Studio 6.0 is on this computer
    -the application which i debug is also on this computer

    Computer 2
    - have only Windows 7 and it is on same LAN network with first computer (both computers can see each other through network).
    -this computer shows just the results for example: if i press F10 on first computer, on second computer shows the console printing for example "Hello World".

    This is 100% possible with Visual C++6.0

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Remote Debugging in Visual Basic 6.0

    I do not know if it would be possible or not but I am wondering why you would have the need or desire to do so.

    Doesn't make much sense to not be either on or remotely connected to your IDE if you are trying to write software. I would say either use remote desktop or the like or use the XP machine or install the development environment on the pc you are using.

    Yes you may be able to use the microsoft debugger but you would be looking at ASM rather than basic code so it may not do you much good.
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    May 2012
    Posts
    6

    Re: Remote Debugging in Visual Basic 6.0

    Well, the need to do that is because when you debug some GUI application you can not see always the graphical elements and windows while debugging. With the remote debugging I can always see the code and the application. Also it is used for some graphical applications where this debugging is so important for developer to see if everything is good at the right moment.

  6. #6
    Join Date
    Jan 2009
    Posts
    596

    Re: Remote Debugging in Visual Basic 6.0

    Wouldn't it be easier to just borrow a second monitor? Just take the one that is currently connected to the remote machine.

  7. #7
    Join Date
    May 2012
    Posts
    6

    Re: Remote Debugging in Visual Basic 6.0

    Is there ANYONE who knows what is REMOTE DEBUGGING? It is not the point to view all the debugging process from another computer, the aim is to part the code which is debugged from the running application.

  8. #8
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Remote Debugging in Visual Basic 6.0

    Have you tried WinDbg :

    http://msdn.microsoft.com/en-us/wind.../gg463009.aspx

    Read here :

    http://blogs.msdn.com/b/marklon/arch...28/518616.aspx

    This seems to be your only option..

  9. #9
    Join Date
    Jan 2009
    Posts
    596

    Re: Remote Debugging in Visual Basic 6.0

    Quote Originally Posted by acects View Post
    Is there ANYONE who knows what is REMOTE DEBUGGING? It is not the point to view all the debugging process from another computer, the aim is to part the code which is debugged from the running application.
    Yes, I know what remote debugging is. But given this comment:
    Quote Originally Posted by acects View Post
    Well, the need to do that is because when you debug some GUI application you can not see always the graphical elements and windows while debugging. With the remote debugging I can always see the code and the application. Also it is used for some graphical applications where this debugging is so important for developer to see if everything is good at the right moment.
    it is not clear that remote debugging is actually what you need. If you have two monitors connected to one computer, you can have the application shown full-screen on one and Visual Studio (with all the windows showing breakpoints, console output, code etc) on the other. You obviously have two monitors you can use, as using remote debugging you need full use of the one showing console output. So why wouldn't connecting this screen to your computer solve your problem?

  10. #10
    Join Date
    May 2012
    Posts
    6

    Re: Remote Debugging in Visual Basic 6.0

    Quote Originally Posted by Peter_B View Post
    Yes, I know what remote debugging is. But given this comment:
    it is not clear that remote debugging is actually what you need. If you have two monitors connected to one computer, you can have the application shown full-screen on one and Visual Studio (with all the windows showing breakpoints, console output, code etc) on the other. You obviously have two monitors you can use, as using remote debugging you need full use of the one showing console output. So why wouldn't connecting this screen to your computer solve your problem?
    Well OK this helps with 2 monitors. But what is the tool from Visual Basic 6.0 which gives me this opportunity with 2 monitors?

    thanks

  11. #11
    Join Date
    May 2012
    Posts
    6

    Re: Remote Debugging in Visual Basic 6.0

    Quote Originally Posted by HanneSThEGreaT View Post
    Have you tried WinDbg :

    http://msdn.microsoft.com/en-us/wind.../gg463009.aspx

    Read here :

    http://blogs.msdn.com/b/marklon/arch...28/518616.aspx

    This seems to be your only option..
    Ok thank you, I read this articles and if possible that is my only chance
    with windbg, I shall review the posibilities of WinDbg application

  12. #12
    Join Date
    Jan 2009
    Posts
    596

    Re: Remote Debugging in Visual Basic 6.0

    Quote Originally Posted by acects View Post
    Well OK this helps with 2 monitors. But what is the tool from Visual Basic 6.0 which gives me this opportunity with 2 monitors?
    Dual monitor support has nothing to do with Visual Basic. It is the operating system which handles the second monitor. Just plug it in the back of your computer (you may need to shutdown your computer first). Then Windows will recognise the new monitor and you can tell it where it is in relation to the first one using the 'Display Properties' dialog.

    Google 'Multiple monitors in Windows <version>' if you need more details, as it may vary depending upon your version.

  13. #13
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Remote Debugging in Visual Basic 6.0

    Assuming of course that you pc or Video card supports 2 monitors, Most do nowadays.

    I use dual monitors a lot while coding, It is very nice to be able to have your database or project notes or spec sheet open on one monitor while having the code window open on another.
    Always use [code][/code] tags when posting code.

  14. #14
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Remote Debugging in Visual Basic 6.0

    Windows can use multiple graphics cards, each supporting 2 monitors. Some cards have 4 ports, but I think the limit per display adapter is 8. Might have multiples. Not sure.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured