• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Rick B. · Jul 03, 2015 at 07:10 AM · plugins

Plugin Development - Debugger

Hi,

Is it possible to attach a debugger or use a breakpoint in any way with plugin development in Eclipse?  Looks like no but just checking.

Rick B

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Dominik S. · Jul 06, 2015 at 01:15 PM

Hi,

I did not actually try it, but it should work to debug a plugin in a running Dynatrace Collector.

You would set the remote-debugging options in the dtcollector.ini, e.g. something like

-Xdebug
-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n

And then use remote debugging in Eclipse to connect to it and stop on breakpoints inside the plugin code.

Naturally the current plugin needs to be deployed to the Dynatrace installation first.

However I usually try to test as much as possible via unit-tests as that allows a much quicker turnaround compared to a full deploy/debug roundtrip.

Dominik.

Comment
Gabriel C.

People who like this

1 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Rick B. · Jul 15, 2015 at 07:57 PM 0
Share

Cool!  I'll try this tomorrow BUT since during tests plugins execute in the com.dynatrace.test.* namespace, will this work?  Or will i have to fully deploy in order to test?

Thanks for the suggestion

Rick B

avatar image

Answer by Mohammed S. · Aug 04, 2015 at 01:55 AM

Hi,

I had a requirement to add an additional varbind in to SNMP Action plugin.

com.dynatrace.diagnostics.plugins.snmp.mapping.IncidentInfoMapper.

I have created an eclipse Java project and added the source files for the Dynatrace SNMP Pluging. Added the dependent jar files and added the necessary code for additional varbind. I am able to run the application successfully. Then I created the jar file using File–>Export to Jar. 

When I am trying to deploy this as a plug-in, I am getting "The bundle 'TestPlugin.jar' is invalid".

Can any one of you have any idea what could be the problem in this plugin jar file. Anything to do with signjar ?

Thanks a lot in advance.

Thousif

 

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Andreas G. ♦ · Aug 04, 2015 at 05:41 PM 0
Share

Just cross linking to the same question you posted in a new question: Adding a varbind in SNMP Action plugin

avatar image

Answer by Luis R. · Jul 03, 2015 at 07:42 AM

Hi Rick,

You can only debug plugins by using status messages or log files. 

Check this out: https://community.dynatrace.com/community/display/DOCDT62/Best+Practices+and+Examples#BestPracticesandExamples-DebuggingaPlugin

Luis Redda

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Stock Quote Monitor plugin

Test Automation with Jenkins Plugin

Is there an integration of Dynatraace Appmon with Unit Test Framework built in c#

PDK Development Environment & Dynamic Measures

Thread Dump Action Plugin

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A