can we debug sharepoint execution

when sharepoint is executing, like whenwe are creating a list, site or whatever that belongs originally to sharepoint, can we go and debug what s happening and put break points, trace....etc

Thank you



Answer this question

can we debug sharepoint execution

  • RonanDiniz

    Hi,

    I'm presuming this is a web part or something you've written

    "If you're building a new Web Part, in order to debug it, you have to manually attach the Visual Studio debugger to the W3SVC.EXE process by selecting Debug -> Attached to Process... and then selecting one or more instances of the W3SVC.EXE process, and click Attach."

    The above is taken from Andrew Connells blog post here where he also mentions a much nicer way to debug:

    http://www.andrewconnell.com/blog/archive/2007/01/25/5855.aspx

    Cheers

    Nick

    ps As with the other question it would be a little easier if you put a little more time into your question so we know exactly what it is you are asking



  • Cem DEMiRKIR

    rtaiss

    Thank you for the response. I'll let you know how it'll turn out.

    The bug is well documented and admitted by MS in this link http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1160619&SiteID=1.

    According to the link, there's supposed to be a hot fix, but only a few has access to it. I have a good source in MS who suppose to get me the fix. I'll post it if and when I ever get it.


  • charles C

    try executing this in cmd prompt:

    stsadm.exe -o execadmsvcjobs

    now your worflow will execute in 10 minutes instead of forever.

    Let me know if u succeed in chnaging it to one minute after

    Take care


  • Vaish

    sorry let me tell u a specefic need for example:

    I add a workflow in sharepoint designer, then I add a pause for a duration for one minute action for the workflow to pause for one minute. but when I start the workflow for an item in a list, the workflow pauses for ever and never terminates.

    What I d like to do is to trace (or track) sharepoint to see what it s doing behind the scene and fix the problem why my workflow doesn t terminate after one minute.

    2/ second question: why don t my workflow terminate after one minute

    Thank you.


  • CaneBaller

    Hello

    I'm having exactly the same problem ...

    i'm using the pause for duration step and i'm setting ti for one minute

    but it pauses forever !!!


    any help appreciated

    thank you

  • Csaba Vegso

    I mean sharepooint web parts. not something i created but sharepoint code itself

    Do they have any code behind or something like that available for debugging

    Thanks


  • pmxinos

    All the code behind is compiled into the Microsoft.SharePoint.*.dll s. All of them are installed to the GAC and are compiled in the released mode. You would need debug symbols for debugging.

    So you cannot debug Microsoft's code.



  • WoodPeckerKing

    "what if u put a scheduled task in control panel: by putting this in a bat file"

    rtaiss please elaborate on the above

    Thanks in advance


  • LTD

    u create a .bat file and u put the above instruction in it. Then in order to run every time, create a scheduled task in control panel that runs every minute or 2 minutes for example.

    But I didn t get an accurate worrflow duration , it runs appriximately every 30 minutes if i put the pause for duration every 3 minutes.

    It s still an issue here at the company 2. I think Microsoft admits that.


  • ISUTri

    I also have workflows which pause forever.

     

    rtaiss suggestion didn't help.

     

    Any one


  • BitShift

    what if u put a scheduled task in control panel: by putting this in a bat file

    stsadm.exe -o execadmsvcjobs


  • can we debug sharepoint execution