[Bug 22870] Microsoft Visual Studio 2008: debugging applications through remote debugger "msvsmon.exe" fails

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Nov 23 13:54:05 CST 2014


https://bugs.winehq.org/show_bug.cgi?id=22870

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |download
             Status|UNCONFIRMED                 |RESOLVED
                URL|                            |http://download.microsoft.c
                   |                            |om/download/8/1/d/81d3f35e-
                   |                            |fa03-485b-953b-ff952e402520
                   |                            |/VS2008ProEdition90dayTrial
                   |                            |ENUX1435622.iso
         Resolution|---                         |WORKSFORME

--- Comment #5 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

the "hang" in the IDE is bug 8332
You can check that by clicking 'refresh' on remote process list a few times.

The terminal the IDE runs in should spit out:

--- snip ---
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires
special permissions.
--- snip ---

If you get "Unable to attach to the process. Operation not supported" after
setcap 'cap_net_raw' you also need to add ptrace caps
('cap_net_raw,cap_sys_ptrace=eip').

In general you seem to have a misconception on how the remote debugging is
supposed to work.
It's as Helder said: you attach to the remote process.

I verified that attaching to remote processes works.

Download 'Visual Studio 2008 Service Pack 1 Remote Debugger ':

http://www.microsoft.com/en-us/download/confirmation.aspx?id=10647

(install in its own WINEPREFIX or better to remote machine)

Put the thing without status window and security disabled into systray:

--- snip ---
$ wine ./msvsmon.exe /nostatus /noauth /anyuser /nofirewallwarn /nosecuritywarn
--- snip ---

In VS 2008 IDE select remote transport and after the remote process list is
displayed the process to attach to.

I wrote a small test app that displays a message box and triggers a segfault
after dismissal.
After attaching and triggering the fault, the remote debugger/server
successfully delivered all information to local IDE, crash location, stack
frames etc.

Breakin without actual exception doesn't work due to bug 25462

Anyway, since simple remote debugging works and OP's issue was rather due to
misconception I'm resolving the bug as 'worksforme' (instead of invalid/dupe).

I found indeed several other problems or things that need to be explained
related to the IDE and the debugger but those deserve their own bugs.
I'll probably create them when I get more time/better mood.
Meta bugs such as "debugging doesn't work" should be avoided.
Be very specific.

$ sha1sum VS2008ProEdition90dayTrialENUX1435622.iso 
bf671c81c0d097f4261b232c80b38bd9549294b0 
VS2008ProEdition90dayTrialENUX1435622.iso

$ du -sh VS2008ProEdition90dayTrialENUX1435622.iso 
3.4G    VS2008ProEdition90dayTrialENUX1435622.iso

$ wine --version
wine-1.7.31-99-g5ecea72

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list