Posted on 2006-06-02
Last Modified: 2013-12-27

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 and attach to the running process ?

i tried this :
in the ,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, and then attach to my application process ?

Question by:daylor
    LVL 3

    Accepted Solution

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


    Author Comment

    im using 2003 :) .

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


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

    LVL 3

    Expert Comment

    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.

    Author Comment


    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 ?
    LVL 3

    Expert Comment

    There are various methods of getting the ip address but it depends on the device and OS. What sort of device you have?


    Author Comment


    the OS is win.ce net

    the device is not important, cause its not general one.
    LVL 3

    Expert Comment

    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:

    Author Comment



    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 ''. the machine cannot be found on the network'

    maybe this feature, to ATTACH to running process and debug it, is only available on 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
      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
        Next currentAddress

        Return listIPAddresses.ToArray(GetType(String))

      End Function  'GetIPAddresses


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 Specialist

    HTML5 development skills are critical to all developers. HTML5 is the foundation to almost any development process. That's why business, design studios, development shops and other organizations need HTML5 developers. Get your foot in the door as a HTML5 specialist.

    In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
    You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now