ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unable to change variables in debug

Post new topic  Reply to topic
 Unable to change variables in debug « View previous topic :: View next topic » 
Author Message
andrewhirst
PostPosted: Tue May 20, 2008 12:11 am    Post subject: Unable to change variables in debug Reply with quote

Apprentice

Joined: 06 Jul 2004
Posts: 33
Location: UK

Hi,

I've come across a funny using the toolkit in debug mode that prevents the value of some variables from being changed.

The code hits a breakpoint and halts. I've tried to change the value of variables directly in the variables tab and also using the Change Value item in the context sensitive menu. The new value is correctly displayed, but in fact the variable is not changed.

The variable in question is a CHAR that is a copy of SQLCODE.
Code:
SET sqlCode = SQLCODE;


I am able to modify other CHAR variables, but not sqlCode.

Any ideas?

I'm running these versions:
ToolKit: 6.1.0.1-20080303_1143
Broker: 6.1.0.1 CMVC Lev S610-FP01 DH610-GOLD
MQ: 6.0.2.1

Many thanks.
_________________
Andrew Hirst
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue May 20, 2008 12:58 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

how you modified the other char variables, and what is the SQLCODE contains..

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
dp111443
PostPosted: Tue May 20, 2008 2:56 am    Post subject: Reply with quote

Voyager

Joined: 25 Feb 2004
Posts: 82

Also, have you tried running a debug trace on your code to see what that gives you?
_________________
Integration Design/Developer

IBM Certified System Administrator -
WebSphere MQ V5.3
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue May 20, 2008 4:40 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi guys,

Hmmm....is SQLCODE a char in the first place ? I think you need to do a cast, right ? Or did you already ?

Regards.
Back to top
View user's profile Send private message Send e-mail
andrewhirst
PostPosted: Tue May 20, 2008 5:10 am    Post subject: Reply with quote

Apprentice

Joined: 06 Jul 2004
Posts: 33
Location: UK

I modified the variables either by typing directly into the cell on the variable tab or right clicking and editing it in the dialogue box.

Looking at the trace I see this:
Code:

SET sqlCode = SQLCODE;

IF SQLCODE <> 0 THEN

The IF statement in the trace is not the same as the source code.

I'd spotted the mistake with the type and corrected it. Still misbehaves.

Regards,

Andrew.
_________________
Andrew Hirst
Back to top
View user's profile Send private message
andrewhirst
PostPosted: Tue May 20, 2008 6:45 am    Post subject: Reply with quote

Apprentice

Joined: 06 Jul 2004
Posts: 33
Location: UK

I renamed sqlCode to sqlRetCode and the problem has gone.

Also my ToolKit has been updated from 6.1.0.1-20080303_1143 to 6.1.0.1-20080408_1404.

Many thanks for your help.

Andrew.
_________________
Andrew Hirst
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unable to change variables in debug
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.