Return-Path: Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: (qmail 77306 invoked from network); 8 Jul 2010 05:11:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 05:11:19 -0000 Received: (qmail 9601 invoked by uid 500); 8 Jul 2010 05:11:19 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 9439 invoked by uid 500); 8 Jul 2010 05:11:18 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 9431 invoked by uid 99); 8 Jul 2010 05:11:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 05:11:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chris.custine@gmail.com designates 209.85.216.169 as permitted sender) Received: from [209.85.216.169] (HELO mail-qy0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 05:11:11 +0000 Received: by qyk32 with SMTP id 32so3021623qyk.0 for ; Wed, 07 Jul 2010 22:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=HWqbIXcGphnmgsIiHbFMuyb0hKuDlNNMy7+8iZ/DNeE=; b=QJaZWLQLU6T/QEEy41vR5AvbVozwMidZrmxMKwR3veJGDRITJ3C412TWp3BFa1a6GA /gW9tw6ihHQwzabTUAiVAT0iK83XNkkdoV0iOc4QNe6Z3IgbLiD635uHnufnXQtxdFW5 ovLtpAa3OF1md4WbAUBtUYdzFRKY4jirdQM04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=NAu9dsDILAbq1rZX6DyMLgz2AwjEoQdDN/nic854qfYPw+WXSr38a2b/M56gs2GZvW 1AxiMD+pBG6KJs970iwNWCp+x7ixLVYAz1MpEmI3IwD7gfF6gGJ3NgOcOygzW1iA9VN9 Ucm6vMPCCBEKfkm91YmU2AhUOOo+7Tiyezf40= Received: by 10.224.26.87 with SMTP id d23mr1233027qac.124.1278565850125; Wed, 07 Jul 2010 22:10:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.50.1 with HTTP; Wed, 7 Jul 2010 22:10:35 -0700 (PDT) In-Reply-To: References: From: Chris Custine Date: Wed, 7 Jul 2010 23:10:35 -0600 Message-ID: Subject: Re: How to debug karaf (kernel) To: dev@karaf.apache.org Content-Type: multipart/alternative; boundary=00c09f9b0ce4519891048ad94f5a X-Virus-Checked: Checked by ClamAV on apache.org --00c09f9b0ce4519891048ad94f5a Content-Type: text/plain; charset=ISO-8859-1 Hi Charles, I think what you want to do is edit the karaf script, find the KARAF_DEBUG variable, and change the suspend=n (near the end of the line) to suspend=y. That will cause the JVM to pause just before running main() until you attach a debugger then it will resume the execution. This way you can set your breakpoints anywhere in the code and you should hit them no matter how early in the startup they are. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Felix :: http://felix.apache.org Apache Directory Server :: http://directory.apache.org On Wed, Jul 7, 2010 at 12:09, Charles Moulliard wrote: > Hi, > > When working with camel, cxf projects and using the variable > KARAF_DEBUG, it is easy to debug an application. But when Karaf > starts, this option does not allow to have access to the classes of > the heart of karaf. Is there a trick to allow to debug feature > mechanism by example in Eclipse ? > > Kind regards, > > Charles Moulliard > > Senior Enterprise Architect (J2EE, .NET, SOA) > Apache Camel - ServiceMix Committer > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Blog : http://cmoulliard.blogspot.com | Twitter : > http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard > --00c09f9b0ce4519891048ad94f5a--