The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

VS2008 remote debugging environment setup process

Other Tools
lanzi
Posts: 39
Joined: Fri Sep 28, 2018 3:41 am
Points :200
Contact:

VS2008 remote debugging environment setup process

Post by lanzi » Wed Apr 10, 2019 3:14 am

Target: the host that runs the program to be debugged.
Commissioning machine: the host machine that runs VS2008 and is remotely connected to the target machine to debug the programs running on the target machine.

lanzi
Posts: 39
Joined: Fri Sep 28, 2018 3:41 am
Points :200
Contact:

Re: VS2008 remote debugging environment setup process

Post by lanzi » Wed Apr 10, 2019 3:17 am

Setting up process of remote debugging environment:
1. Install the VS2008 remote debugger on the target machine. In the Remote Debugger directory of the VS2008 setup disk, there are x64 and x86 versions, and you can choose the version that matches the target machine.
2. Create a new user on the target machine with the same username and password as the user running VS2008 on the debugging machine. During this process, if the target machine is a server such as Windows 2003, there may be password policy restrictions. Close password policy method is: "start management tool domain security policy (or local security policy)", select "account policy password policy", set "password must meet the complexity requirements" as disabled, after exit open command line execution "gpupdate /force" to ensure that the group policy is refreshed.
3.Add the newly created user to the Administrators group on the target machine.

lanzi
Posts: 39
Joined: Fri Sep 28, 2018 3:41 am
Points :200
Contact:

Re: VS2008 remote debugging environment setup process

Post by lanzi » Wed Apr 10, 2019 3:18 am

4. Add "login as a service" permission to the newly created user on the target machine. Still open the domain security policy in the previous step, select "local policy user permission assignment", add the newly created user to the list of users "logged in as service", after exit, open the command line to execute "gpupdate /force" to ensure that the group policy is refreshed.
5. Open the service manager on the target, find the Visual Studio 2008 Remote Debugger service, in the login TAB, select login identity, select this account, and click browse to select the newly created user, enter the password, and confirm. Restart the service.

lanzi
Posts: 39
Joined: Fri Sep 28, 2018 3:41 am
Points :200
Contact:

Re: VS2008 remote debugging environment setup process

Post by lanzi » Wed Apr 10, 2019 3:18 am

6. Select "debug attach to process" in VS2008 on the debugging machine, enter the IP or machine name of the target machine in "qualifier", press enter or click the lower right corner to refresh the list of processes on the target machine. Subsequent operations are similar to native debugging. If the prompt "the specified network name is no longer available" pops up during the connection process, the Computer Browser service on the target machine is not started and the connection can be started. Click the help in the prompt box to see the detailed explanation in MSDN.
:) :) :)

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 0 guests

JavaCard OS : Disclaimer