locked
Debugger does not show the source code being executed by my app RRS feed

  • Question

  • User-1565900434 posted

    I have created a web service that works fine for me (please keep in mind that I used visual studio and did
    some .net programming few years ago and since then I have not touched until now when my company started
    moving our apps to .net, I am totally new to SOA but I am finding my way around) the problem is when I debug this
    app, the service I have created uses our dbaccess generic class to interact with the database. The namespace:

    using XXXX.Library.Database;

    have been included to the list of directives (if I can use this word) for the service I have created and I can
    actaully declare classes from this namespace inside the definition of my web service, the problem is that when
    i hit the line code in my webservice:

    objDbAccess = new DbAccessBase(strConnectionName);
    dsNew = _objDbAccess.GetDataSet(sqlCmd);
    return dsNew;

    this code is actually creating an instance of dbacess class and then calls methods form it. While I am debugging
    my webservice code I can not make the debugger show me the code from dbaccess methods, no matter what I do it
    does not step into the code rather it just step over it, it executes everything fine but does not take me inside
    the code for dbaccess so I can see what is really happening and why my sql is not returning any data? is this
    possible? what do I have to do to force the debugger show me the actaul exectuion for dbaccess methods.

    any help will be much appreciated.

    Tuesday, May 14, 2013 4:34 PM

Answers

  • User1124521738 posted

    1) are you doing a project reference to the datalayer library or did you take the assemblies and reference them?

    2) are both your webservice and database library built as debug or as release. 

    if the library is built as release and referecned as an assembly you will only be able to inspect the public properties and will not be taken to source.  make sure you use debug mode and a project reference.  You might also need to clean your solution as there could be stray release built assemblies.  Make sure to switch back to release mode when you deploy outside of your local dev box.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 14, 2013 4:40 PM

All replies

  • User1124521738 posted

    1) are you doing a project reference to the datalayer library or did you take the assemblies and reference them?

    2) are both your webservice and database library built as debug or as release. 

    if the library is built as release and referecned as an assembly you will only be able to inspect the public properties and will not be taken to source.  make sure you use debug mode and a project reference.  You might also need to clean your solution as there could be stray release built assemblies.  Make sure to switch back to release mode when you deploy outside of your local dev box.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 14, 2013 4:40 PM
  • User-1565900434 posted

    thank you very much for your answer that is what exactly the problem was, I had to build the library in debug mode instead of release mode and after I did that I was able to get inside the code while debugging. thanks for your answer and help. 

    Wednesday, May 15, 2013 11:39 AM