Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
This page was last modified 12:55, 7 May 2008.

Debugging leaves

From Forum Nokia Wiki

(Redirected from Debug of Leave)


Original (Russian): Отладка сброса (leave)


Debugging Leave situations might be tedious. It would be much easier if the debugger could catch leaves and break the code execution. Luckily, there is a way to achieve it:

#define __LEAVE_IF_ERR(_c) TInt32 __reason = _c;       \
                           if (__reason < 0) {         \
                              __BREAKPOINT();          \
                              User::Leave(__reason);   \
	                   }

The usage of this macro is similar to using User::LeaveIfError(), e.g. __LEAVE_IF_ERR(iFs.Connect()).

Related Discussions
Thread Thread Starter Forum Replies Last Post
Just in time debugging in Series 60 V2 JasonSmithMiller General Symbian C++ 3 2008-10-15 16:01
如何在真机上调试? yyyly Symbian 12 2006-09-27 12:03
GDB on-target debugging andyclap Symbian Tools & SDKs 1 2003-02-09 16:42
HELP in INPUT FIELD rochie General Symbian C++ 0 2003-11-03 08:26
How to debugging programs ?? program_hqf General Symbian C++ 2 2005-01-14 14:16
 
Powered by MediaWiki
RDF Facets: qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX