Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound Debugger

Date2013-12-15 04:12
FromAndres Cabrera
Subject[Cs-dev] Csound Debugger
AttachmentsNone  None  
Hi,

I've been working on implementing a debugger with introspection for Csound. I now have a working proof of concept which you will find the csdebugger branch.

The current implementation allows setting breakpoints for instruments (including fractional part), so that whenever that instance is reached in the kperf function, csound halts all rendering, but without stopping audio or MIDI I/O (or any other additional threads), and without incrementig any of the time counters. The current INSDS * instance can be queried using the debugger API which can be found in csdebug.h.

You can see some usage examples in the tests/c/csound_debugger_tests.c file.

This is still a work in progress, but if you are interested, please let me know what you think, and any suggestions or comments.

To build the debugger add  -DBUILD_DEBUGGER=1 to your cmake call.

I have also implemented a very basic debugging GUI in CsoundQt, which can display the variables for the instrument and can start, stop, pause and add/remove breakpoints in the debugger.

Cheers,
Andrés

Date2013-12-15 10:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] Csound Debugger
Nice! Thanks for this.
On 15 Dec 2013, at 04:12, Andres Cabrera  wrote:

> Hi,
> 
> I've been working on implementing a debugger with introspection for Csound. I now have a working proof of concept which you will find the csdebugger branch.
> 
> The current implementation allows setting breakpoints for instruments (including fractional part), so that whenever that instance is reached in the kperf function, csound halts all rendering, but without stopping audio or MIDI I/O (or any other additional threads), and without incrementig any of the time counters. The current INSDS * instance can be queried using the debugger API which can be found in csdebug.h.
> 
> You can see some usage examples in the tests/c/csound_debugger_tests.c file.
> 
> This is still a work in progress, but if you are interested, please let me know what you think, and any suggestions or comments.
> 
> To build the debugger add  -DBUILD_DEBUGGER=1 to your cmake call.
> 
> I have also implemented a very basic debugging GUI in CsoundQt, which can display the variables for the instrument and can start, stop, pause and add/remove breakpoints in the debugger.
> 
> Cheers,
> Andrés
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-12-16 17:54
FromRory Walsh
SubjectRe: [Cs-dev] Csound Debugger
AttachmentsNone  None  

This sounds great. I'll not have a chance to check it out before the holidays but I plan to take a look over it once the holiday mayhem is over!

sent from a mobile device...

On 15 Dec 2013 04:12, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
Hi,

I've been working on implementing a debugger with introspection for Csound. I now have a working proof of concept which you will find the csdebugger branch.

The current implementation allows setting breakpoints for instruments (including fractional part), so that whenever that instance is reached in the kperf function, csound halts all rendering, but without stopping audio or MIDI I/O (or any other additional threads), and without incrementig any of the time counters. The current INSDS * instance can be queried using the debugger API which can be found in csdebug.h.

You can see some usage examples in the tests/c/csound_debugger_tests.c file.

This is still a work in progress, but if you are interested, please let me know what you think, and any suggestions or comments.

To build the debugger add  -DBUILD_DEBUGGER=1 to your cmake call.

I have also implemented a very basic debugging GUI in CsoundQt, which can display the variables for the instrument and can start, stop, pause and add/remove breakpoints in the debugger.

Cheers,
Andrés

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-12-17 07:48
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] Csound Debugger
Very nice initiative. This will be super useful.
Oeyvind

2013/12/16 Rory Walsh :
> This sounds great. I'll not have a chance to check it out before the
> holidays but I plan to take a look over it once the holiday mayhem is over!
>
> sent from a mobile device...
>
> On 15 Dec 2013 04:12, "Andres Cabrera"  wrote:
>>
>> Hi,
>>
>> I've been working on implementing a debugger with introspection for
>> Csound. I now have a working proof of concept which you will find the
>> csdebugger branch.
>>
>> The current implementation allows setting breakpoints for instruments
>> (including fractional part), so that whenever that instance is reached in
>> the kperf function, csound halts all rendering, but without stopping audio
>> or MIDI I/O (or any other additional threads), and without incrementig any
>> of the time counters. The current INSDS * instance can be queried using the
>> debugger API which can be found in csdebug.h.
>>
>> You can see some usage examples in the tests/c/csound_debugger_tests.c
>> file.
>>
>> This is still a work in progress, but if you are interested, please let me
>> know what you think, and any suggestions or comments.
>>
>> To build the debugger add  -DBUILD_DEBUGGER=1 to your cmake call.
>>
>> I have also implemented a very basic debugging GUI in CsoundQt, which can
>> display the variables for the instrument and can start, stop, pause and
>> add/remove breakpoints in the debugger.
>>
>> Cheers,
>> Andrés
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-12-18 16:36
Fromandy fillebrown
SubjectRe: [Cs-dev] Csound Debugger
AttachmentsNone  None  
Wow, this is awesome news!  This has been on my wish-list since I started using Csound.  Definitely going to check it out when I get a chance.  Thank you!





On Tue, Dec 17, 2013 at 2:48 AM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Very nice initiative. This will be super useful.
Oeyvind

2013/12/16 Rory Walsh <rorywalsh@ear.ie>:
> This sounds great. I'll not have a chance to check it out before the
> holidays but I plan to take a look over it once the holiday mayhem is over!
>
> sent from a mobile device...
>
> On 15 Dec 2013 04:12, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
>>
>> Hi,
>>
>> I've been working on implementing a debugger with introspection for
>> Csound. I now have a working proof of concept which you will find the
>> csdebugger branch.
>>
>> The current implementation allows setting breakpoints for instruments
>> (including fractional part), so that whenever that instance is reached in
>> the kperf function, csound halts all rendering, but without stopping audio
>> or MIDI I/O (or any other additional threads), and without incrementig any
>> of the time counters. The current INSDS * instance can be queried using the
>> debugger API which can be found in csdebug.h.
>>
>> You can see some usage examples in the tests/c/csound_debugger_tests.c
>> file.
>>
>> This is still a work in progress, but if you are interested, please let me
>> know what you think, and any suggestions or comments.
>>
>> To build the debugger add  -DBUILD_DEBUGGER=1 to your cmake call.
>>
>> I have also implemented a very basic debugging GUI in CsoundQt, which can
>> display the variables for the instrument and can start, stop, pause and
>> add/remove breakpoints in the debugger.
>>
>> Cheers,
>> Andrés
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel