Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2004



Tip: Looking for answers? Try searching our database.

Debug Quark 6.1 extension into CodeWarrior 8.3

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jean-Pierre Poulin - 17 May 2004 21:51 GMT
When I debug my Quark extension (command - R with debugger activated),
the debug don't stop at my break point. Anyone as encounter this
problem with debuggin Quark extension with codewarrior 8.3.

Thanks.
MW Ron - 17 May 2004 23:23 GMT
>When I debug my Quark extension (command - R with debugger activated),
>the debug don't stop at my break point. Anyone as encounter this
>problem with debuggin Quark extension with codewarrior 8.3.

Yes others have seen this especially with 8.3  you might want to do a
google search on this group and see what some of the remedies are.  The
first solution is to debug it correctly   Plugin debugging methodology
has changed with CW 8.3 over previous versions.  However I think Quark
and others have additional quirks.

Ron

Signature

         Free Download   -  New Version Released
CodeWarrior Development Studio for HC(S)12 Microcontrollers v3.1
offers "emulator-like" debugging support for HCS12 derivatives
http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Deirdre Saoirse Moen - 18 May 2004 01:29 GMT
> Yes others have seen this especially with 8.3 you might want to do a
> google search on this group and see what some of the remedies are.
> The first solution is to debug it correctly Plugin debugging
> methodology has changed with CW 8.3 over previous versions.  However
> I think Quark and others have additional quirks.

Back in the dark ages when I did a fair amount of XTension development,
I found the best debugging tool to be sound and headphones.

Signature

_Deirdre                                             http://deirdre.net
"Ideally pacing should look like the stock market for the year 1999, up
and up and up, but with lots of little dips downwards...."
                                    -- Wen Spencer on plotting a novel

Jean-Pierre Poulin - 18 May 2004 13:25 GMT
In the forum, I don't find anything can help me. Do I miss something
important? The only thing I founded it's to open de xSym file directly
instead of executing my debug directly from CodeWarrior. The problem
is same. The debugger don't break to my break point and don't reconize
the entry point. Is exist a patch to correct the problem? As I seen in
the news groups, it seem that upgrading to CodeWarrior 9 won't correct
my problems.

I'am able to debug my others plugins. These plugin are Linker :
Macintosh PowerPC. The plugin with problems is Linker : Mac OS X
PowerPC Mach-O.

> > Yes others have seen this especially with 8.3 you might want to do a
> > google search on this group and see what some of the remedies are.
[quoted text clipped - 4 lines]
> Back in the dark ages when I did a fair amount of XTension development,
> I found the best debugging tool to be sound and headphones.
MW Ron - 18 May 2004 15:04 GMT
>In the forum, I don't find anything can help me. Do I miss something
>important? The only thing I founded it's to open de xSym file directly
[quoted text clipped - 3 lines]
>the news groups, it seem that upgrading to CodeWarrior 9 won't correct
>my problems.

How far back did you do a google search?   I know that others are
debugging Quark just fine.

Did you look for the obvious reasons for not stopping at a breakpoint.  
This applies to everything.
Inlining is on
The code is not used and deadstripped out
optimizations are on
A corrupt or erroneous sym file

>I'am able to debug my others plugins. These plugin are Linker :
>Macintosh PowerPC. The plugin with problems is Linker : Mac OS X
>PowerPC Mach-O.

I know that Quark has Quirks, if you are debugging others then it isn't
likely a procedural problem by you.

Are you sure the plugin is being loaded and everything?

Ron

Signature

         Free Download   -  New Version Released
CodeWarrior Development Studio for HC(S)12 Microcontrollers v3.1
offers "emulator-like" debugging support for HCS12 derivatives
http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Eric VERGNAUD - 18 May 2004 22:11 GMT
Hi all,

I still haven't switched to CW9, but following this thread, I have a few
questions:

- is it now possible to debug inline code (when inlining is off)?
- is it now possible to debug templates ?
- is it now possible to set breakpoints on C++ methods without specifying
the class ?

Eric
MW Ron - 18 May 2004 23:58 GMT
>Hi all,
>
>I still haven't switched to CW9, but following this thread, I have a few
>questions:
>
> - is it now possible to debug inline code (when inlining is off)?

It always has been as far as I know, but if you mean does it break  one
line of code into several steps no.

> - is it now possible to debug templates ?

It always has been there usually is a little arrow that indicates what
the template is initialized with i.e  int, long   or double double long  
etc to let you know which instantiation it is.

> - is it now possible to set breakpoints on C++ methods without specifying
>the class ?

I think it always has been,  what am I missing?  Probably something
obvious.

Ron

Signature

         Free Download   -  New Version Released
CodeWarrior Development Studio for HC(S)12 Microcontrollers v3.1
offers "emulator-like" debugging support for HCS12 derivatives
http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Deirdre Saoirse Moen - 19 May 2004 00:56 GMT
> I think it always has been,  what am I missing?  Probably something
> obvious.

Not CW's fault, but debugging XTensions has always been its own special
hell. Which is why I'm half-glad I don't do that any more. :)

Signature

_Deirdre                                             http://deirdre.net
"Ideally pacing should look like the stock market for the year 1999, up
and up and up, but with lots of little dips downwards...."
                                    -- Wen Spencer on plotting a novel

Eric VERGNAUD - 19 May 2004 09:49 GMT
dans l'article mwron-13B07D.18580518052004@news.newsguy.com, MW Ron à
mwron@metrowerks.com a écrit le 19/05/04 0:58 :

>> Hi all,
>>
[quoted text clipped - 5 lines]
> It always has been as far as I know, but if you mean does it break  one
> line of code into several steps no.

Well, when I try to debug inline code with CW 8.3, I fall into assembly. Am
I missing something ?

>> - is it now possible to debug templates ?
>
> It always has been there usually is a little arrow that indicates what
> the template is initialized with i.e  int, long   or double double long
> etc to let you know which instantiation it is.

Same as inline. I can't see the template code like I do with Visual C++.

>> - is it now possible to set breakpoints on C++ methods without specifying
>> the class ?
>
> I think it always has been,  what am I missing?  Probably something
> obvious.

Say you have a base class A with a M() virtual method, and dozens of classes
which inherit from A and provide their own M. Go to Debug->Set/Clear
breakpoint. If you type M, CW complains it cannot find the method. You need
to type A::M. This is rather annoying because when you're debugging, you
often don't remember which particular classes implement M(). Again Visual
C++ provides this functionality.

Eric
MW Ron - 19 May 2004 15:34 GMT
>dans l'article mwron-13B07D.18580518052004@news.newsguy.com, MW Ron à
>mwron@metrowerks.com a écrit le 19/05/04 0:58 :
[quoted text clipped - 11 lines]
>Well, when I try to debug inline code with CW 8.3, I fall into assembly. Am
>I missing something ?

Apparently or I am,  send me an example.  I assume you are talking about
C++ inline code  not Apples onewordline types o stuff.

Maybe you are stepping into some runtime code  do you don't step into
runtime code set in the preferences?

>>> - is it now possible to debug templates ?
>>
[quoted text clipped - 3 lines]
>
>Same as inline. I can't see the template code like I do with Visual C++.

I don't know how you see it in VC++ but it should work an example and
some pictures would be very helpful.

>>> - is it now possible to set breakpoints on C++ methods without specifying
>>> the class ?
[quoted text clipped - 8 lines]
>often don't remember which particular classes implement M(). Again Visual
>C++ provides this functionality.

OK I never use this,  I just set things in the source view... I can add
this as a suggestion.

Ron

Signature

 Metrowerks, one of the world¹s top 100 companies and influencers
    in the software development industry. - SD Times  May 2004
              http://www.sdtimes.com/2004sdt100.htm
     
                 Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Miro Jurisic - 20 May 2004 04:24 GMT
> Say you have a base class A with a M() virtual method, and dozens of classes
> which inherit from A and provide their own M. Go to Debug->Set/Clear
> breakpoint. If you type M, CW complains it cannot find the method. You need
> to type A::M. This is rather annoying because when you're debugging, you
> often don't remember which particular classes implement M(). Again Visual
> C++ provides this functionality.

Hit cmd-', type M. Select one from the list. Set a breakpoint.

meeroh

Signature

If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>

Eric VERGNAUD - 20 May 2004 18:56 GMT
dans l'article macdev-E3193B.23243519052004@senator-bedfellow.mit.edu, Miro
Jurisic à macdev@meeroh.org a écrit le 20/05/04 5:24 :

>> Say you have a base class A with a M() virtual method, and dozens of classes
>> which inherit from A and provide their own M. Go to Debug->Set/Clear
[quoted text clipped - 4 lines]
>
> Hit cmd-', type M. Select one from the list. Set a breakpoint.

That works great ! Thanks.

Eric
Thomas Engelmeier - 21 May 2004 13:30 GMT
> >instead of executing my debug directly from CodeWarrior. The problem
> >is same. The debugger don't break to my break point and don't reconize
[quoted text clipped - 4 lines]
> How far back did you do a google search?   I know that others are
> debugging Quark just fine.

Who is debugging his XTension _fine_? I am aware of some people that
were not able to debug them at all (this is one of the most FAQ on the
appropriate mailing list) and a maiority that is able to debug them with
limitations (having to quit the development environment often is IMO a
severe limitation and everything but fine: It interupts the focus on the
problem to solve..)

It seems at least one of the circumstances that prevented the debugger
to trigger at all with my setup were fixed (or I changed an setting for
good) since MacOS 10.2.8 / CodeWarrior 9 came out, as I was able to use
the debugger with bundle projects on OS X for the first time last week.
As well with an sample iMovie Plug-in and a Xtension.  
 
> I know that Quark has Quirks, if you are debugging others then it isn't
> likely a procedural problem by you.

With all due respect: If debugging a shared libraries fails for an some
hosts, it is still the job of the development environment to:
- make sure loading gets noticed - as long the host is using any (by the
operating system) documented way to do it
- be able to set breakpoints
- map the symbolics file of plugin to a given address

For the record: I have implemented a XTension that allows XPress to be
integrated in an publishing system - without any source level debugger
at all. Codewarrior 6 and 7 failed to debug my C++ heavy XTensions. The
debugger only worked for the more straightforward C XTensions of
colleagues of mine. You can be sure this topic raises a whole bunch of
animosities for me. Getting something in in the order of hundrets source
files to work reliable without being able to peek at the source when
it's being executed is _not_ fun.

Regards,
  Tom_E

Signature

This address is valid in its unmodified form but expires soon.

MW Ron - 21 May 2004 15:57 GMT
>With all due respect: If debugging a shared libraries fails for an some
>hosts, it is still the job of the development environment to:
>- make sure loading gets noticed - as long the host is using any (by the
>operating system) documented way to do it
>- be able to set breakpoints
>- map the symbolics file of plugin to a given address

I don't know what is unique about Quark Xtensions,  perhaps they do not
abide by the API correctly.   For example CodeWarrior provides its own
COM interface for its plugins.  This is proprietary and you do need to
do things out of the ordinary to debug our plugins.  Would not being
able to debug our plugins with XCode be a fault of XCode or Metrowerks,
or is it just the way things are?

Ron

Signature

 Metrowerks, one of the world¹s top 100 companies and influencers
    in the software development industry. - SD Times  May 2004
              http://www.sdtimes.com/2004sdt100.htm
     
                 Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Miro Jurisic - 21 May 2004 19:30 GMT
> I don't know what is unique about Quark Xtensions,  perhaps they do not
> abide by the API correctly.   For example CodeWarrior provides its own
> COM interface for its plugins.  This is proprietary and you do need to
> do things out of the ordinary to debug our plugins.  Would not being
> able to debug our plugins with XCode be a fault of XCode or Metrowerks,
> or is it just the way things are?

You are the debugger vendor, we are the customers. If CW debugger doesn't work
well with Foo plugins, it makes no difference to the customers whether it's your
fault, Foo's fault, Apple's fault, or just the way things are. The only thing
that matters to the end user is how serious MW is about addressing the problems
with the debugger  -- and whether you have to talk to Foo or someone else to do
so doesn't really make a difference to us.

Regardless whose fault it is, it's MW's reputation that suffers for it, so you
should be more proactive about getting it sorted out, IMO.

meeroh

Signature

If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>

Thomas Engelmeier - 24 May 2004 10:47 GMT
> >With all due respect: If debugging a shared libraries fails for an some
> >hosts, it is still the job of the development environment to:
[quoted text clipped - 5 lines]
> I don't know what is unique about Quark Xtensions,  perhaps they do not
> abide by the API correctly.

Oh come on Ron, this is a cheap shot. Just above this thread there is
another one regarding since Filemaker is a Mach-O binary some user can
not debug its Mach-O plugins there. And I could for sure not debug
iMovie Plugins some (minor?) releases back. Please no "it must be the
fault of the host" reiterations.
Just for the records: The problems may or may not be fixed with CW v9.2
- as it just started to work for me, I had no time to do regression
tests with the problems that occured not all the time.
The XPress issues have to my knowledge been reported by multiple users
against CW8 and 9. Shall I make a poll on the developer list? As all
XTension developers are under NDA, probably none of them did provide
Metrowerks tech support with details, the only solution is Metrowerks
and Quark communicate directly. Anyway, I am pretty sure the problems
will also surface with other bundle type Plug-Ins.

>  For example CodeWarrior provides its own
> COM interface for its plugins.  This is proprietary and you do need to
> do things out of the ordinary to debug our plugins.  

Sorry, at some points we are talking about conceptual things that went
broken _looooooong_ time ago (and also reported then). Problems to debug
some CFM plugin technologies started with the Pro releases when the
debugger was migrated in the IDE. Some of the issues were never fixed
for any debugger release for CFM. E.g. that the xSym file is not closed,
even when the plugin is unloaded by its host application (that may not
quit). An missing way to detach from debugging without killing the host.
The kill button is not disabled and without visual clue even though it
takes ages to stop debugging. The buggy handling of subsequent
"inbetween" kill klicks... When those things go wrong wrong, usually a
crash is not far away.. (and there is no way to save the debugging state
manually)

And no, that is not rare functionality under esoteric circumstances. And
it were not only XPress hosted shared libraries. It were Photoshop
plugins, Quicktime components, AppleScript OSAX, MacEasyOpen converters,
FBC plugins, Codewarrior Plugins, ...

Debugging Mach-O plugins just started to be possible with the latest
release, how can you be so sure there are no more bugs and blame the
host all the time?

>Would not being
> able to debug our plugins with XCode be a fault of XCode or Metrowerks,
> or is it just the way things are?

Should I care? I spend my time with the environment with the higher
productivity. If XCode allows me to debug, I use XCode.

Regards,
  Tom_E

Signature

This address is valid in its unmodified form but expires soon.

MW Ron - 24 May 2004 15:03 GMT
>> >With all due respect: If debugging a shared libraries fails for an some
>> >hosts, it is still the job of the development environment to:
[quoted text clipped - 11 lines]
>iMovie Plugins some (minor?) releases back. Please no "it must be the
>fault of the host" reiterations.

I can only deal with one issue at a time.  Everyone that debugs Quarks
says there are difficulties that seem to go beyond CodeWarrior.  If you
want to discuss problems in general with plugins,  we certainly had them
with CW 7 and CW 8  some fixed in 8.3  most if not all fixed in CW 9.  

>Sorry, at some points we are talking about conceptual things that went
>broken _looooooong_ time ago (and also reported then). Problems to debug
[quoted text clipped - 17 lines]
>release, how can you be so sure there are no more bugs and blame the
>host all the time?

and I did not do that  I simply said there MIGHT be something unique
about Quark

If you want to flame for the problems over the past 5 years maybe we
should open a different thread. :)

Ron

Signature

 Metrowerks, one of the world¹s top 100 companies and influencers
    in the software development industry. - SD Times  May 2004
              http://www.sdtimes.com/2004sdt100.htm
     
                 Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Thomas Engelmeier - 25 May 2004 16:36 GMT
> >Oh come on Ron, this is a cheap shot. Just above this thread there is
> >another one regarding since Filemaker is a Mach-O binary some user can
[quoted text clipped - 3 lines]
>
> I can only deal with one issue at a time.

Odd enough, when I re-reported the issues with the CW 9 supplied IDE for
classic debugging, three separate issues (purposely reported separate)
to cw_bugs with different symptoms were just merged together as one bug
in the bug tracking system. Sorry, sounds like "keep the defect count
low".  

> Everyone that debugs Quarks
> says there are difficulties that seem to go beyond CodeWarrior.  If you
> want to discuss problems in general with plugins,  we certainly had them
> with CW 7 and CW 8  some fixed in 8.3  most if not all fixed in CW 9.

Some were IMO still present in CW 9.0 - There is a chance that
completely disabled STABS information in Mach-O bundles is the key
factor for that, still, without any help tags for the STABS popup and
automatic setting it when an project is upgraded ar any other hint it is
required I do not see the whole fault at the user side.

> If you want to flame for the problems over the past 5 years maybe we
> should open a different thread. :)

I have definitive better things to do than flaming. Maybe I just should
send the mails in my outbox about debugging issues that are still held
back for review. I digged them up when I tried to get an at least
partially objective picture which bug was (re-)reported when. Most of
them were written after I ended up loosing one day or more trying to
isolate reasons for debugger failures, random crashes etc.. Those mails
are at least closer to what one might consider to be a flame.

Regards,
  Tom_E

Signature

This address is valid in its unmodified form but expires soon.

MW Ron - 25 May 2004 17:30 GMT
>> >Oh come on Ron, this is a cheap shot. Just above this thread there is
>> >another one regarding since Filemaker is a Mach-O binary some user can
[quoted text clipped - 9 lines]
>in the bug tracking system. Sorry, sounds like "keep the defect count
>low".  

I looked and you have 3 different and unique bug reports from April 23
for classic debugging.

>> If you want to flame for the problems over the past 5 years maybe we
>> should open a different thread. :)
>
>I have definitive better things to do than flaming. Maybe I just should
>send the mails in my outbox about debugging issues that are still held
>back for review.

Please forward these to me,  You have always been extremely fair and I
don't think you've ever been the type to blame Metrowerks first without
being fairly certain.  So I'm sure that if you have issues they are real.

I have doubts that issues with the classic debugger will be fixed, but
we should be aware of them so if work is done we can know about it.

Ron

Signature

 Metrowerks, one of the world¹s top 100 companies and influencers
    in the software development industry. - SD Times  May 2004
              http://www.sdtimes.com/2004sdt100.htm
     
                 Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Thomas Engelmeier - 26 May 2004 15:40 GMT
> >Odd enough, when I re-reported the issues with the CW 9 supplied IDE for
> >classic debugging, three separate issues (purposely reported separate)
[quoted text clipped - 4 lines]
> I looked and you have 3 different and unique bug reports from April 23
> for classic debugging.

OK, my assumption was based on a mail I received..

> Please forward these to me,  You have always been extremely fair and I
> don't think you've ever been the type to blame Metrowerks first without
> being fairly certain.  So I'm sure that if you have issues they are real.

They are pretty old, some in the Pro 5, 6 and 7 aera.. So they do not
matter any more.

> I have doubts that issues with the classic debugger will be fixed,
> but  we should be aware of them so if work is done we can know about it.

Honestly, I donŒt expect they get fixed but e.g. the kill button not
being disabled between it´s being klicked until debugging is really
stopped is a conceptual, still existing issue..

Regards,
  Tom_E

Signature

This address is valid in its unmodified form but expires soon.

Alexey Proskuryakov - 19 May 2004 08:26 GMT
On 18.05.2004 16:25, in article
aa53a0e6.0405180425.5ba35a6e@posting.google.com, "Jean-Pierre Poulin"
<jean-pierrep@pbs.com> wrote:

> In the forum, I don't find anything can help me.

 Doesn't Quark disallow any discussion of XTension development outside its
own site?

> As I seen in the news groups, it seem that upgrading to CodeWarrior 9 won't
> correct my problems.

 It does make XTension debugging much more reliable. You still need to
relaunch CW very often, it crashes and hangs, but mostly works.

 Note that you may need to set the breakpoints in the symbolics window, not
in the editor.

 2 MWRon: if I had reproducible cases, I would have already reported
these...

- WBR, Alexey Proskuryakov
Rod Dorman - 19 May 2004 18:50 GMT
>  ...
>  Doesn't Quark disallow any discussion of XTension development outside its
>own site?

The XTensions Interface yes, but not discussion of the tools used for
development.

Signature

                    -- Rod --
rodd(at)polylogics(dot)com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.