Xcode how to inspect a value while debugging
Hi all,
I'm new to Apple development, and was playing around with the debugging feature in xcode lastnight. All the features look great except i cannot find a way to inspect a value on a highlighted text of code(hopefully this make sense). i know i can inspect values that are held in an object (after the object is created), but what if i want to inspect a value that is not going to be held in an object? i.e. in Eclipse (java development), while in a break point, i can highlight a piece of code (e.g. new Date()) and then inspect its value. not sure if there is a way to do the same thing in xcode 3.
thanks heaps, Jess
I understood the question, I just didn't understand why a person with healthy eyes would ask it in the first place.
u can aks sum1 eles tho lol gu luk
Similar Messages
-
How to avoid authorization checks while debugging
Hi,
Can anyone let me to know how to avoid authorization checks while debugging
for a standard transaction?
-B S BHello BSB,
To start the debug put /hs will start the system debug.
Then place the break points aat STATEMENT -- MESSAGE and F8
So now the system will stop at the point where it throwing the error message change the value of SY-SUBRC to 0 from 4.
Regards,
Vasanth -
How to get default values while using the transaction "BP"
Hi Group,
I have a query on how to get default values while using the transaction <b>BP</b>?
The thing is:
when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
how can I achieve this?
So please kindly let me know the procedure to achieve this.
Thanks & Regards,
Vishnu.Hi,
The events of BDT can be used to default some fields on creating a partner.
For this create a function module for ISDAT. attach that event in BUS7.
In the ISDAT funtion modulethe following code should be used.
For example to set the nationality:
I_BUSDEFAULT-NATIO = 'DE.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = I_BUSDEFAULT
Regards, Smita. -
How to see refcursor data while debugging
Dear Guru,
I have below procedure.
create or replace
PROCEDURE Main_Proc
RS_1 OUT TMRS_UTIL_PKG.RefCsr
AS
L_Excecution_Status NUMBER;
L_Sql_Code VARCHAR2(1000);
L_Sql_Error VARCHAR2(1000);
a NUMBER;
BEGIN
-- Initialize Execution Status.
G_Excecution_Status := 0;
G_Sql_Code := 'C';
G_Sql_Error := 'E';
DBMS_OUTPUT.PUT_LINE('Entered in Main_Proc.. ');
-- Return Resultset
OPEN RS_1 FOR
SELECT 'This output is from Main_Proc' AS Main_Proc_OP
FROM DUAL;
DBMS_OUTPUT.PUT_LINE('Left Main_Proc.. ');
G_Excecution_Status := L_Excecution_Status;
G_Sql_Code := L_Sql_Code;
G_Sql_Error := L_Sql_Error;
EXCEPTION WHEN OTHERS THEN
G_Excecution_Status := 1;
G_Sql_Code := SQLCODE;
G_Sql_Error := 'In Main_Proc SP => '||SQLERRM;
END Main_Proc;
I just want to see output contain in RS1.
I am using SQL Developer 3.0
Could anybody help me.
Regards
SanjeevWhen running a procedure with output cursor variable(s) the result is in structured output window (modulo bugs exposed in EA1).
You are asking how to view cursor data during debuging, however, and support of complex datatypes, cursor including, is limited. On the other hand, I can imagine that during debuging session you would step inside the calling procedure, where you would extract cursor data row-by-row into some other data structures. The idea I fail to understand is why somebody is not satisfied watching those data structures themselves. As Java developer, I have never peeked into the content of ResultSet (which is essentially client-side cursor in Java)! -
How to view cursor values while in DEBUG mode
I am using SQL developer 1.5.1 and I am debugging my Stored Procedure.
I cannot find how to view the contents of variables as I step through the code.
For example, I have the following IF:
IF NVL(rat_rec.rat_css_agency_cd, -1) != NVL(lclcssagencycd, -1) THEN
lclupdate := TRUE;
END IF;
I want to be able to see what is the value of rat_rec.rat_css_agency_cd and also lclcssagencycd, to see why it is evaluating this IF statement to be true.
In other words it is saying rat_rec.rat_css_agency_cd is NOT the same as lclcssagencycd, but I want to see what the differences are and need to be able to 'look' at the value of each variable.
It is NOT showing on SMART DATA or DATA.
I have not used SQL Developer much before, so must be missing something.
(In VB, I can debug a routine and then stop on a variable and press SHIFT+F9 to see the contents of the fields. I want to do the same thing in SQL DEVELOPER).Yes, I do.
I am able to step through the code and if I stop on a particular line of code, I want to be able to evaluate the variables or cursor fields that I am on to see what their contents are.
Sean -
How to find the memory values while debugging
Hi Friends,
In an ABAP program I have exported some values to a memory id. in debug mode where can i see these values. Could any one tell me....Helpful answers would be highly rewarded..!!
regards,
Ramineni.Hi
In debugger you need to put the memory Id name and you will be able to see values where you export them.
regards
Aditya -
How to pass multiple values while invoking bpel process from ADF?
Hi,
I want to call a bpel process from my ADF application. The bpel process is having one input parameter. I have created webservice data control by using WSDL url.
Lets say, I have an Emp multi select table. I drag and drop the data control into Emp table selection facet to create an "Invoke" button.
I am able to pass single value (lets say Empid) to the bpel process after clicking the "Invoke" button.
But, my requirement is to pass all the selected values ( as its a multi select table) to the bpel process after clicking the "Invoke" button once.
How can I achieve this?
--AbhijitHi,
if the BPEL method that you access allows you to pass arrays or lists, then you can get a list of selectedRowKeys from the table, which then you use to get the value from the underlying binding or the table. This however requires some Java coding instead of directly invoking the executable on the binding layer
- you create the BPEL method in the binding layer
- from a Java managed bean you call ADFBindingContext --> get current instance and access Binding container
- OperationBinding oper = (OperationBinding ) bindings.get("method to invoke");
oper.gerParamsMap().put("the BPel argument name", value);
oper.execute();
- To access the table selected rows
RowKeySet rks = _table.getSelectedRowKeys();
//iterate over the set of selected row keys and delete
//each of the found rows
Iterator selectedRowIterator = rks.iterator();
while (selectedRowIterator.hasNext()){
//get the first key
Object key = selectedRowIterator.next();
//make the row current
_table.setRowKey(key);
//the row is an instance of the ADF node binding class
JUCtrlHierNodeBinding rowWrapper = null;
rowWrapper = (JUCtrlHierNodeBinding) _table.getRowData();
//get the actual oracle.jbo.Row object
Row row = rowWrapper.getRow();
... get attribute values by calling row.getAttribute("name"); assuming you used ADF BC to build the tableFrank -
AIX 5.2 : how to pass password value while creating a user on AIX server
Hi ,
Test connection is successful with AIX server , I can successfully create a user on AIX server, with defualt password.
I am not passing the any password value still some default value is being populated for the user...
In AIX while creating the user , use get force to set the password...
But while configuring the schema for AIX adapter ...if password attribute is given then it will give the error
as invalid attribute...while creating a user if password value pass...
how to set the password for the user..what attribute need to set for the password .
thanks ..The default password might be the IdM account password of the user you are trying to provision. You don;t need to keep password in the resource schema. Just set password.password and password.confirmPassword and select AIX resource for password reset. Check the workflow-form-views document for more information on password view.
-
Viewing complete value while debugging
Hallo Forum,
I hope that I don't post a FAQ but I did not find this one doing some searching.
Okay, here is my problem:
When debugging a stored procedure, I try to get the complete value of a varchar2(4000) variable but I'm seeing just the first 100 characters.
Since I'm building up a SQL for execute immediate, I have to see the complete value in order to get an explain plan.
Do I just miss some configuration option or is that gerarally not possible?
My configuration is SQLDeveloper 1.0.0.14.67 with newest updates installed (these do not change the version number by the way).
I'm running on WinXP SP2 against an Oracle 9.2.0.7.0 running on W2kSP6.
Many thanks in advance,
LotharI set a breakpoint and try to inspect the local variables of the procedure.
When I doubleclick on the variable and enlarge the column that shows the value, it is truncated after 100 characters.
I don't know if it's a debugger issue or if the problem origins in SQL Developer because I'm not using dbms_debug outside SQL Developer.
You can hopefully reproduce this by using a test procedure like this:
CREATE OR REPLACE PROCEDURE TEST AS
s varchar2(4000);
BEGIN
for i in 1..10 loop
for j in 1..10 loop
s := s||'('||to_char(i)||','||to_char(j)||') **********';
end loop;
end loop;
END;
When you set a break point at the line where s is appended, Smart Data, Data and Watches show s just truncated to 100 chars.
Regards,
Lothar -
How to generate unique values while initializing values
I am initializing values in my pl/sql program and want to use a sequence to set my unique ids but it errors out. Below is what I use.
ie. table_id := table_seq.nextval;
How can I use my sequence to initialize values or is this possible?The method suggested by user605919 will work. However, you don't need to initialize a variable like this. It is better and more performant to do it like the third example below:
SQL> create table mytable
2 ( id number(6)
3 , description varchar2(30)
4 )
5 /
Tabel is aangemaakt.
SQL> create sequence table_seq start with 1 increment by 1
2 /
Reeks is aangemaakt.
SQL> declare
2 table_id mytable.id%type := table_seq.nextval;
3 begin
4 insert into mytable
5 ( id
6 , description
7 )
8 values
9 ( table_id
10 , 'Some description'
11 );
12 end;
13 /
table_id mytable.id%type := table_seq.nextval;
FOUT in regel 2:
.ORA-06550: line 2, column 41:
PLS-00357: Table,View Or Sequence reference 'TABLE_SEQ.NEXTVAL' not allowed in this context
ORA-06550: line 2, column 12:
PL/SQL: Item ignored
ORA-06550: line 9, column 5:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 9, column 5:
PL/SQL: ORA-00904: "TABLE_ID": invalid identifier
ORA-06550: line 4, column 3:
PL/SQL: SQL Statement ignored
SQL> declare
2 table_id mytable.id%type;
3 begin
4 select table_seq.nextval
5 into table_id
6 from dual
7 ;
8 insert into mytable
9 ( id
10 , description
11 )
12 values
13 ( table_id
14 , 'Some description'
15 );
16 end;
17 /
PL/SQL-procedure is geslaagd.
SQL> begin
2 insert into mytable
3 ( id
4 , description
5 )
6 values
7 ( table_seq.nextval
8 , 'Some description'
9 );
10 end;
11 /
PL/SQL-procedure is geslaagd.And if you need the id value for some code after the insert, you use the RETURNING clause.
Regards,
Rob. -
Manually Update Values While Debugging
In various other code debuggers (MS Visual Studio, GNU Debugger (gdb), etc) while execution of a program is paused, I can manually change the value of variables within the program.
Is this possible in LabVIEW 8.2?
Solved!
Go to Solution.No. Vote for the idea.
-
How to Pass a value while opening a transaction in ABAP
Hello Friends
I am trying to write a short BAPI to search a quotation number, since I didn't see any standard BAPI to do the same.
Here is what I want to do.
I want to write a program that valls VA23 with a specific QUOTATION NUMBER AND DO A SEARCH and give back the response if it found that document or not.
Any help will be highly appreciated.
Tks
RamHi Ram,
1) Declare a Variable with the typed of QUOTATION NUMBER type for example w_field.
2) Move some value as per your requirement to that variable (w_field).
3) Set the value of that variable to the SAP memory by SET PARAMETER ID .. statement.
DATA : w_field type <QUOTATION NUMBER type> .
MOVE <Value> TO w_field.
SET PARAMETER ID 'XYZ'
FIELD w_field.
Note : Here "XYZ" is the Parameter Id of the field QUOTATION NUMBER . -
How to hide singles values while summation
Hi
I am facing one issue in my requirement.Can some expert help me out..It will be a great help.
I need to show the sum of individual values in my report.I require sum only ,not individual values.
The report shows sum along with all its values.
when i checked option "Calculate Single value as = Hide",then those places will be blank and it shows only result.
eg Expired ID
4
But i want it to be
Expired ID 4
What would be the possible solution .....
Its urgent.Hi
Thanks a lot for a quick reply
Actually my query is like
ID Expired 41
ID expire in nxt 7 days 20
ID Overdue 14
All these are based on key figure ZCOUNTER.
Even if i hide ZCOUNTER,But the individual entries is coming blank (if i hide them) .I want to hide them completely ...
also in that case zcounter is calculating the same result for all rows.which is incorrect.
now its coming like
ID Expired 13
10
11
7
41
i want to remove these entries.... -
How to change the Value of a Varible while debugging in ECC 6.0
Hi all,
How can i change and Save the Value of a varible while debugging a FM in ECC 6.0.
I can able to change the Value of a variable by clicking the Pencil Icon (Change icon) which is there next to that value
But i am not able to save that value
Please give the suggestions
Thanks in Advance
Regards
AjayAjay,
I think you are changing more than one variable value at a time...this things generally happen in this case.
Go step by step.....
Press on the pencil button
value filed becomes editable
change the value
and at once press the enter
the ediatble field automatically becomes non editable, and hence retain the changed value.
Pooja -
How to inspect a cursor variable in a debug session?
In a function inside the body of a package I do...
Example:
V_SITUACIONESACTYHIST C_SITUACIONESACTYHIST%ROWTYPE;
BEGIN
FOR v_SituacionesACTyHIST IN c_SituacionesACTyHIST( p_id_DECE400, p_idpers )
LOOP
IF ( V_SITUACIONESACTYHIST.ESTADO_SITUACION = 'S' ) THEN
v_hay_regs_hist:=1;
END IF;
END LOOP;
where the cursor variable c_SituacionesACTyHIST is declared in the specifications package (Is this the problem, because is a global declaration?).
When debugging I cannot inspect the value of V_SITUACIONESACTYHIST.ESTADO_SITUACION or whatever cursor variable field; I always obtain "NULL" as value...
Why?
How can I see the value of that variables?
I have the same problem in v2.1 and 1.5.5 version of sqldeveloper.
Thanks.
Edited by: pacoKAS on 11-feb-2010 0:14
Edited by: pacoKAS on 11-feb-2010 0:17
Edited by: pacoKAS on 11-feb-2010 0:17
Edited by: pacoKAS on 11-feb-2010 0:19
Edited by: pacoKAS on 11-feb-2010 0:21
Edited by: pacoKAS on 11-feb-2010 0:22
Edited by: pacoKAS on 11-feb-2010 0:22I'm proposing that you don't have a variable named the same as your cursor variable.
CREATE OR REPLACE
PROCEDURE P1
AS
CURSOR test_cur
IS
SELECT owner, table_name FROM all_tables WHERE ROWNUM <= 10;
-- x test_cur%rowtype; /* This variable is not needed. */
BEGIN
FOR x IN test_cur /* If you don't have another variable named x somewhere, you can see values for x */
LOOP
dbms_output.put_line(x.owner || '.' || x.table_name);
END LOOP;
END P1;from your example...
V_SITUACIONESACTYHIST C_SITUACIONESACTYHIST%ROWTYPE;
BEGIN
FOR v_SituacionesACTyHIST IN c_SituacionesACTyHIST( p_id_DECE400, p_idpers )
LOOP
IF ( V_SITUACIONESACTYHIST.ESTADO_SITUACION = 'S' ) THEN
v_hay_regs_hist:=1;
END IF;
END LOOP;You're declaring your variable twice:
(1) V_SITUACIONESACTYHIST C_SITUACIONESACTYHIST%ROWTYPE;
(2) FOR v_SituacionesACTyHIST IN c_SituacionesACTyHIST
When you're debugging, it's looking at the first version...which is null because you haven't assigned anything to it. When you use a Cursor For-Loop like that, it implicitly declares the variable for you. You don't have to do it in your DECLARE section.
Edited by: DylanB123 on Feb 16, 2010 1:04 PM
Maybe you are looking for
-
Be sure to update the App Catalog ASAP!
Many of us received this email from the webOS team: Mandatory webOS system update A certificate used on webOS devices expires on July 23, 2013. For the system to be able to use cloud services such as Backup/Restore and App Catalog the certificate nee
-
Selection screen output obligatory field
Hi all, I have two radio buttons, if i selected one radio button one selection screen will come for entries another will be invisible. in that selection screen i have all are mandatory fields. so it is not allowing to another radio button with out en
-
Hi all, I have the following queries Could any one explain me in detail the step-by-procedure for creating a shopping cart . what are the prerequisites for creating the shopping cart whether we have to create shopping cart in sap transaction
-
How to save inputText under a af:forEach/af:Iterator loop?
e.g. 11g, the following code: <af:forEach value="#{salaryList}" var="salary"> <af:inputText value="#{salary}" > </af:forEach> <af:commandButton text="Save Changes" action="#{backingBean.doSave}"/> How to read the user input in the inputText from scre
-
Unity 4.2(1) Failover Problems
I was contacted about a Unity 4.2(1) problem someone was having last week. From my initial investigation, it appears that failover is not working at all., due to the fact SQL replication is broken. The event log is logging the error "SQL Server rep