Link to home
Start Free TrialLog in
Avatar of daylor
daylor

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Mikeh926
Mikeh926

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of daylor
daylor

ASKER

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).



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.
Avatar of daylor

ASKER

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 ?
There are various methods of getting the ip address but it depends on the device and OS. What sort of device you have?

Avatar of daylor

ASKER

hi.

the OS is win.ce net

the device is not important, cause its not general one.
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
Avatar of daylor

ASKER


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