Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:28:05+00:00 2026-05-27T23:28:05+00:00

For some weird reason, I can’t debug the code inside my static web method.

  • 0

For some weird reason, I can’t debug the code inside my static web method. The code itself is like this:

public partial class StoredProcedures : BasePage//Inherits from  System.Web.UI.Page
{
  ...........................
  [WebMethod(EnableSession = true)]
    public static object ProcedureList(int jtStartIndex, int jtPageSize, string jtSorting)
    {
        if (jtStartIndex == null)
            jtStartIndex = 0;
        if (jtPageSize == null)
            jtPageSize = 0;
        if (string.IsNullOrEmpty(jtSorting))
            jtSorting = null;
        //Get data from database
        string sql = "select object_name as Name, status as Status, created as Created from user_objects where object_type = 'PROCEDURE'";
        DataTable ds = RequestSingleton.DBConnection.GetDataTable(sql);
        int procCount = ds.Rows.Count;
        if (procCount != 0)
        {
            DataFiller<StoredProc> dtfStoredProc = new DataFiller<StoredProc>();
            List<StoredProc> list = null;
            list = dtfStoredProc.FromDataTableToList(ds);
      .........................
      .............................. 

The JQuery calls the static method, and if I insert breakpoints inside the static method, they are not used. It’s probably something obvious that I’m missing, but seems kinda weird that i can’t debug the webmethod. The thing is that I want to see what is going on in there, since something is not right, and without debugging, it’s kinda hard.
Inserting breakpoints in any other place in the ASP.NET project is not a problem, but in that code block, it is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:28:06+00:00Added an answer on May 27, 2026 at 11:28 pm

    I have found why the static method couldn’t be debugged: the value of trace in the web.config file must be set to true, otherwise the breakpoints are not invoked.
    So to anyone who might have this problem when debugging static webmethods in ASP.NET, check that trace is set to true. It doesn’t matter whether the pageOutput is false or true, but trace has to be set to true. Thanks for your time and answers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I run some code like this: $quote = simplexml_load_string($xml); $quote = $quote->Stock; echo
I've found it very weird that simple code like this is not valid: select
For some reason in the testEmployee method I am getting weird error messages saying
Hi got a weird problem parsing JSON for some reason can't access the values
For some reason this function is doing something weird just in Firefox function fadeOUT_sect(id)
For some weird reason, the codes below are first working, then website is redirecting
For some really weird reason when i set the .Enabled property to false on
I am testing some weird-looking CSS code that I wrote (I'm using a mix
I'm having some weird issues with Xcode, and this is pretty much impossible to
Something really weird is happening to my Rails app. For some strange reason, jQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.