Line number of debugging script

Dear Sir/Mam,
      i am debugging a script , how to know in which line-number i am debugging , in case of reports , we can see the line number directly if we select the " swith to classical debugger " , but in case of script , i am not able to find the line number , my script consists of 1132 lines of code. , please help me.
Thanks in Advance,
Dastagiri N.

Dear Sir/Madam,
       I executed RSTXDBUG , and executable program of ME23N ( RM_MEPO_GUI ) now entered in to debugging script,
as long as i press  F5 ( single step ) or F6 ( execute ) or F8 ( continue ) , i didnt find any line number ,
if i found the line number , that makes me easy to modify the code.
   And also please tell me how to delete a line in editor.
                   i.e.,After clicking text element icon , while writing the code for a particular window , unfortunately i pressed enter instead of shift ,i entered in to new line , how can i erase that line  
              please help me for these cases.
Thanks & Regards,
Dastagiri.

Similar Messages

  • Line number in Sap Script

    hi,
    How to get line number in sap script form?
    Regards,
    Sal.

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • Break points set in an included script during debugging sporadically jump to the last line of the included script

    As I stated in the title, I use the ScriptInclude command quite extensively, because we have at our company a policy of maintaining one large-ish (roughly 7k lines) function library which is included by various individual evaluation scripts. Debugging this with break points is often the only (useful) way to see into the state of the script, so I depend on them.
    My problem is that often when I debug a script calling the function library, setting a break point in that library and running into it during debug mode will not transport the cursor to the location of the current break point, but instead to the very end of the included script. I have noticed this with a separate pair of scripts, as well, which includes a similar size script to call functions from (roughly 2k lines).
    Now I wonder if this has to do with the size of the scripts included, or if it is dependent on something else. It seems to not be affected by restarting DIAdem, and sometimes it works as intended, but I have not been able to reliably replicate indivdual occurrences one way or the other.
    Has anyone else had this problem happen to them?
    Leo Zschokke
    Test Engineer C-EPS
    ThyssenKrupp Presta AG

    Leo
    I also use scriptincludes extensively, Most of mine are in the range of 500 to 2000 lines.  Usually I organize them in logical code topics,  I like to use them to hold one class most of the time.  When I debug these I can set a breakpoint, and it will stop at that location.
    I also use custom log class as well, I find this quite helpful, in the applications that are unattended.
    The only thing I can think of to try is to separate the 7k file into 2 2k line files and then script include them separately.
    Paul
    ps. I sometimes need to have intellisense work from a file that was scriptincluded, this requires copying the file into the end of the main script.  (you most likely already know this   )
    One other note, Are you talking about debuging code in a SUD, that is whole different problem to deal with.

  • Is there a  rt.jar with line number info for Debug?

    Hello,
    I am trying to step through a part of sun.reflect.annotation.AnnotationParser which is a part of JDK 1.5.0_12. I have access to the source code.
    When a breakpoint is attempted to be set in the code, the debugger i am using (Eclispe) complains that the compiled code does not have line number information for it to set the breakpoint.
    Is there a special version of rt.jar that had been compiled with debug flag on?
    Or is there other solution to this problem of debugger stepping through Sun source code?
    Please help.

    rt.jar is not compiled with -g option. -g option is for the locals information. I think even if it is not compiled with -g it still has line number information. May be eclipse was not able to locate the source. Have you tried jdb and did you see the same problem? If so let us know.
    As far as I know there is no special version of rt.jar compiled with -g option.

  • Find line no in sap script page

    In sap script there are five pages to be printed
    I want to check in each page the first line exists or not.
    as well as to identify the first line of each page.
    How to get a line number for each page in Sap script
    Please revert back asap
    Thanks

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • XML Parsing Error: no element found Line Number 1, Column 1:

    Hi All,
    I have deployed EAR on my standalone server using JDEV 11.1.1.6.0. I am able to get the WSRP portlet producer page on
    http://<server>:7001/contextRoot. But when i try to click on any of the WSDL URL it gives me "XML Parsing Error: no element found Line Number 1, Column 1:"
    and from IE it gives me: XML document must have a top level element. Error processing resource
    there can be a issue with the WSRPContainer.jar file. So i have remove it from my deployment profile, EAR and lib/classpath files.
    Can you please suggest a workaround.
    Regards,
    ND
    Edited by: ND on Dec 4, 2012 9:57 PM

    Hi All,
    this error normally comes when the WLS domain is not not properly created. if you get some exception for ./provesecurity.sh file while creating the domain, then the XML error comes.
    I did not went into the depth but figured out a workaround: restart the VM/hosted box and then create the domain, remember to use diff port name while creating it from the domain creation script.
    Regards,
    ND

  • Reset file name and line number in preprocessor

    We are using Sun Studio 12u1 on Solaris x86 10u9.
    For one of our large projects our make file copies many C++ source files into one large allsource.cpp file. This results in significantly faster compilation and better inter-procedural optimizations.
    Unfortunately, when the compiler generates warning or error messages they refer to allsource.cpp. Also when it comes time to debug, dbx is looking for debugging information for the original source file instead of looking for allsource.o.
    On Windows (MSVC), we use the #line directive to reset the line number and filename so that the error messages point to the correct line and number, and so that the debugger knows that the debugging information for myfile.cpp is actually in allsource.o.
    Does the Sun compiler have anything similar to the #line directive?

    To reset the preprocessor to the start of a new file:
    #1 "filename"
    where filename is the name or complete path name of the file.
    To change the line number within the current file:
    #N
    or
    #line N
    where N is an integer
    Example:
    % cat z.cc
    struct S { X x; };
    #1 "/foo/bar.h"
    Int I;
    #500
    Float F;
    #line 1000
    Double D;
    88% CC -c z.cc
    "z.cc", line 1: Error: Type name expected instead of "X".
    "/foo/bar.h", line 1: Error: Int is not defined.
    "/foo/bar.h", line 500: Error: Float is not defined.
    "/foo/bar.h", line 1000: Error: Double is not defined.
    4 Error(s) detected.BTW, you might get a similar improvement in compile time by using precompiled headers.
    The -xipo option provide inter-procedural optimization across compilation units. Refer to the C++ Users Guide for details.
    We seem to have a bug in the Forum software. My original source code and the compiler output have double quotes ("...") but they show as single quotes in the code brackets.
    Edited by: clamage45 on Apr 13, 2010 1:13 PM

  • Log4j async appender and line number output

    Hello,
    I am trying to implement log4j in my application, and would like to log the caller class and the line number of the call. When I do not use async appender, the caller class and the line number are logged. However when I add the same appenders to the AsyncAppender, the caller information is lost. Please, take a look at the config and output snippets.
    Thanks,
    Elana
    ======
    Here is the configuration without the use of the async appender (Async tags are commented out)
    <log4j:configuration debug="true">
    <!-- <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
        <appender-ref ref="SystemOut"/>
        <appender-ref ref="FileOut"/>
      </appender>
       -->
      <appender name="SystemOut" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern"
                 value="%5p (%d{DATE}) [%t] (%F:%L) - %m%n"/>
        </layout>
      </appender>
      <appender name="FileOut" class="org.apache.log4j.RollingFileAppender">
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern"
                 value="%5p (%d{DATE}) [%t] (%F:%L) - %m%n"/>
        </layout>
        <param name="File" value="logs/exampleAsync.log"/>
        <param name="MaxFileSize" value="100KB"/>
        <param name="MaxBackupIndex" value="1"/>
      </appender>
      <root>
        <!--<appender-ref ref="ASYNC"/>       -->
          <appender-ref ref="FileOut"/>
          <appender-ref ref="SystemOut"/>
      </root>
    </log4j:configuration>It produces the following output:
    DEBUG (08 Apr 2006 17:03:49,140) [Thread-0] (LogGenerator.java:79) - Debugging
    DEBUG (08 Apr 2006 17:03:52,145) [Thread-0] (LogGenerator.java:74) - TracingHere is the configuration WITH the use of async appender
    <log4j:configuration debug="true">
      <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
        <appender-ref ref="SystemOut"/>
        <appender-ref ref="FileOut"/>
      </appender>
      <appender name="SystemOut" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern"
                 value="%5p (%d{DATE}) [%t] (%F:%L) - %m%n"/>
        </layout>
      </appender>
      <appender name="FileOut" class="org.apache.log4j.RollingFileAppender">
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern"
                 value="%5p (%d{DATE}) [%t] (%F:%L) - %m%n"/>
        </layout>
        <param name="File" value="logs/exampleAsync.log"/>
        <param name="MaxFileSize" value="100KB"/>
        <param name="MaxBackupIndex" value="1"/>
      </appender>
      <root>
        <appender-ref ref="ASYNC"/>
      </root>
    </log4j:configuration>It produces the following output: (NOTE the question marks in the place of caller info)
    DEBUG (08 Apr 2006 17:12:12,534) [Thread-1] (?:?) - Tracing
    DEBUG (08 Apr 2006 17:12:15,528) [Thread-1] (?:?) - Debugging

    I don't think you can use AsyncAppender with a properties file. You have to use XML and a JoranConfigurator

  • How to find proc/func name from package name and line number?

    Hi,
    We are using the pl/sql call stack dump (dbms_utility.format_call_stack) for some debugging purposes. But in the case of a package body execution, the dump does not return the name of the procedure/function that is being executed, but only the name of the package and the line number being executed. So, we have a requirement wherein we need to extract the type and name of a package subunit from the package name and line number.
    e.g.
    From the information package 'A', line number 739
    we should be able to deduce that line 739 is a part of *'function A.f'*
    Does the oracle database provide any native mechanism (PL/SQL packages or otherwise) to support such functionality? If it does not, how can we achieve the desired result?
    Thanks in advance,
    Shashank

    The approach we are currently planning to take up is this :
    1. Write PL/SQL code to parse the entire source (user_source) and build a database table with a structure like this :
    PACKAGE_NAME | UNIT_TYPE | UNIT_NAME | START_LINE | END_LINE
    =============================================
    A | PROCEDURE | P1 | 20 | 345
    A | FUNCTION | F1 | 347 | 629
    etc..
    2. Start PL/SQL package execution.
    3. Keep dumping call stack snapshots whenever a custom debug procedure is called.
    4. Dump the package name and line number to a log file.
    5. Using the package name and line number, query the table built in step 1 and build the final report which shows the control flow in a readable form.
    What we want is to get rid of step 5 and by some means get the logic to extract the unit type and name in step 4 itself.
    Keep them coming..
    Thanks and regards,
    Shashank

  • Line number in a stored procedure

    Hello All,
    In a stored procedure, as a part of logging the debugging information, I want to store the current line number in a variable (say line_number) and return it from the stored procedure as a output paramater. I would like to update line_number with the current line number in the stored procedure code at certain intervals. This would help me to know till where the procedure executed in case of failure.
    Now my question is as follows:
    Is there any standard variable in Oracle which gives the current line number in the stored procedure?
    Please see the example code below
    CREATE OR REPLACE PROCEDURE XXXXX
    (line_number OUT NUMBER)
    AS
    line_number = <current line number in the code>
    line_number = <current line number in the code>
    line_number = <current line number in the code>
    EXCEPTION
    WHEN OTHERS THEN
    BEGIN
    ROLLBACK;
    END;
    END XXXXX;
    Best Regards,
    Ramesh

    Hi,
    No, is not. Try to use all_source for this.

  • Oracle SQL Developer and Errors (Line Number Incorrect)

    First, I wanted to state that Oracle SQL Developer 2 is a standout job.
    I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
    Is this something I could fix on my end? I have five other developers griping about this.
    Thank you!

    I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
    select * from dual;
    select * from dual;
    select * from dual;
    select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
    I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
    theFurryOne

  • Source line number in exception trace

    Excuse me if the question is silly.
    When I print the stack trace after an exception has occured, how is it able to display the exact source line number 'cos the source file may or may not be accessible to the jvm. Obviously they don't keep source line-wise info in the class file,right?

    won't class files be large just because of the debug data?
    laurivasko@linux:~/java> javac HelloWorld.java
    laurivasko@linux:~/java> ls -la HelloWorld.class
    -rw-r--r--    1 laurivasko users         426 2004-06-26 20:07 HelloWorld.class
    laurivasko@linux:~/java> javac -g:none HelloWorld.java
    laurivasko@linux:~/java> ls -la HelloWorld.class
    -rw-r--r--    1 laurivasko users         341 2004-06-26 20:07 HelloWorld.classas you see, first case has file size of 426 bytes, and other one has wile size of 341 bytes, and that all with 5 line HelloWorld commandline application.
    // hopefully that answers your question.

  • How to get the line number of source file?

    Hi,
    What is the equivalent in Java of the __LINE__ and __FILE__ macros in C? I want to print out the line number and the file name where the instruction is being executed.
    Thanks,

    If you are doing this because you're implementing your own debug logging, have a look at Log4J.
    You can configure it to log classnames, method names and line numbers of the code you're executing.

  • Ways to get the line number in sapscript form?

    Hi, all.
    May I know whether that there are ways to get the line number in sapscript form?
    For example, I want to get to know the certain line number in the MAIN window.
    Thanks in advance.

    Thanks Naimesh Patel  .
    Is there anyway to get the PENDING_LINES  value in the script?
    Because i can't modify the standard print program, i can only edit the Sapscript Form and add in some extra subroutine only.
    tnx.

  • Retrieving line-number of the last error

    Hello !
    Is it possible to access the line number where the last error in a PL/SQL procedure occured ?
    At example:
    CREATE OR REPLACE PROCEDURE do_stupid
    IS
    tempNum Number;
    BEGIN
         FOR i IN 1..5
         LOOP
              temp := sysdate;
         END LOOP;
         tempNum := 2;
         tempNum := tempNum / 0;
         tempNum := 3;
    EXCEPTION
    WHEN OTHERS THEN
         -- i want to access the line-number of the error "tempnum / 0"
    END do_stupid;
    Thank You
    Florian

    If you are just trying to debug one procedure, eliminating the exception section and running it from sql*plus will cause it to return an error message that includes the line number. But this won't work if you are trying to trap the error and log it in some table or some such thing.
    SQL> CREATE OR REPLACE PROCEDURE do_stupid
      2  IS
      3    tempnum NUMBER;
      4    temp    DATE;
      5  BEGIN
      6    FOR i IN 1..5
      7    LOOP
      8      temp := SYSDATE;
      9    END LOOP;
    10    tempnum := 2;
    11    tempnum := tempnum / 0;
    12    tempnum := 3;
    13  END do_stupid;
    14  /
    Procedure created.
    SQL> EXEC do_stupid
    BEGIN do_stupid; END;
    ERROR at line 1:
    ORA-01476: divisor is equal to zero
    ORA-06512: at "SCOTT.DO_STUPID", line 11
    ORA-06512: at line 1

Maybe you are looking for

  • 700P and Windows Vista

    Are there drivers out there for the 700P and 64bit WIndows Vista.  I loaded beta 6.2 and when I hook up I get stuck in a loop looking for a DARN driver? HELP!!! Post relates to: Treo 700p (Verizon)

  • Problem in RSA3 with FI_AR_4 extractor

    Hi Gurus!!! I have a problem when I run the extractor FI_AR_4 in the transaction RSA3. The message is "Customizing table of period indicators is incomplete Message no. 12145" Any suggestions? Thanks a lot!!!! César.

  • Accessing method of used compoent from a using component

    hi i have a USED component which implements a interface and its method display_flights. now i want to call this method from USING component. i have written the below coode lr_interfacecontroller TYPE REF TO ZIWCI_COMP_1.  " zcomp_1 is used component

  • Installation terminates every time!!!

    First of all, i got extremely bored with this,,, i installed acrobat 11, the latest version, worked perfectly,,, found an update for it in the adobe application manager, applied it, and here everything wrecked,,, acrobat never started again,,, i unin

  • Format number of digit for a double value

    Hello all How I can format a double value so that there are only 2 values after the dot. For example 2.332332 -> 2.33 3.1 -> 3.10 Thank you for your help shuhu