Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 648
  • Last Modified:

DEBUG *RUNNING PROCESS* WITH VS.NET ON SMART DEVICE

hi.

everytime im debugging my application, its taking long time to copy all the files,dlls, and other content i have in the project.

is there a way, to run the application in the smart device, and then, go to vs.net and attach to the running process ?

i tried this :
in the vs.net ,go to DEBUG---> PROCESS, then in the name, i see only my computer, i dont see the "mobile device".

the mobile device has ip ?
what i need to do, so i can see the running process of the smart device, from the vs.net, and then attach to my application process ?

thanks.
0
daylor
Asked:
daylor
  • 4
  • 4
1 Solution
 
Mikeh926Commented:
Connect your device via ActiveSync. Unlike remote debugging on WIN32, if your target is a smart device, I think you have to have an active ActiveSync connection to it.

From vs.net 2005, select debug -> attach to process.
In the Transport pulldown, select SmartDevice
Click the Browse button and select the type of device you have e.g. "Windows Mobile 5.0 Pocket PC Device".
After a short pause, you should get a list of processes on the device and you can attach to one of them.

 Mike.
0
 
daylorAuthor Commented:
im using vs.net 2003 :) .

i hope, that what i need exist in vs.net 2003 too.
in my Transport pulldown i have :

TCP/IP
PIPE
DEFAULT

in the name:(this is where i can browse)
i can see "my network places"
and from there i can see my computer.

maybe the smart device has ip from the active sync ?
cause i thought, maybe to enter the IP of the smart device .(cause tcp/ip debugging means other side (activesync/smart device , has IP).



0
 
Mikeh926Commented:
Ok, I don't know about VS2003. We went from EVC4 to VS2005.

The SmartDevice will have an assigned IP address from ActiveSync so in principle you could connect to it via TCP/IP, provding you know the ip address and are running the CE equivelent of msvcmon.exe (or whatever it is in VS2003) on the device first.

- Mike.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
daylorAuthor Commented:
hi.

i can debug the applicationin the device  in the regular way.(so maybe i have what i need to run in the device)

how can i know the ip that activesync set to smart device ?
0
 
Mikeh926Commented:
There are various methods of getting the ip address but it depends on the device and OS. What sort of device you have?

0
 
daylorAuthor Commented:
hi.

the OS is win.ce net

the device is not important, cause its not general one.
0
 
Mikeh926Commented:
There are a number of 3rd party utils that will tell you your ip address - a sort of CE equivelent of ipconfig. I belive that MS have powertoys for CE as well.

Whilst I was looking, I stumbled across this site that you may find helpful:

http://geekswithblogs.net/waterbaby/articles/41946.aspx
0
 
daylorAuthor Commented:

hi,

i found how to get the ip from the device, in a reply on this site,
i entered the IP in the "name" combo ,

but the debugger answer was :
"unable to connect to the machine '192.168.55.101'. the machine cannot be found on the network'


maybe this feature, to ATTACH to running process and debug it, is only available on vs.net 2005.

thanks for your time.




===============================================

Here is some code to get the IP address of the machine (PocketPC):

Imports System.Net
Imports System.Net.Dns



  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    MessageBox.Show(GetIPAddresses(0))
  End Sub

  Public Function GetIPAddresses() As String()

    Dim hostEntry As IPHostEntry = GetHostByName(GetHostName())

    Dim listIPAddresses As New ArrayList

    For Each currentAddress As IPAddress In hostEntry.AddressList
      listIPAddresses.Add(currentAddress.ToString())
    Next currentAddress

    Return listIPAddresses.ToArray(GetType(String))

  End Function  'GetIPAddresses

Bob
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now