Est-il possible de déboguer une application JRuby on Rails fonctionnant sur un serveur Tomcat dans Eclipse?

StackOverflow https://stackoverflow.com/questions/8337804

Question

J'ai une application JRuby on Rails en cours d'exécution sur le serveur Tomcat 7. J'utilise Eclipse IDE. Est-il un moyen de déclenchement de points d'arrêt dans le code Ruby?

Dans le cas contraire, est-il une autre façon de déboguer l'application? (Et je préfère ne pas utiliser des messages d'imprimer à la console). Je suppose que si elle ne fonctionne pas avec Eclpse, il ne fonctionnera pas avec IntelliJ soit.

Était-ce utile?

La solution

The JRuby on Rails application that we are currently developing will ultimately be deployed to a Tomcat server. During development, however, we use the out-of-the-box WEBrick server to run and debug our application. Although, we use IntelliJ (with the Ruby plugin) so I'm not sure if there is similar support for Rails development in Eclipse. You could always switch to IntelliJ...

Note: With this approach you would still want to frequently deploy to Tomcat, perhaps within a staging environment, or as part of a continuous deployment strategy. This will ensure the application still behaves as expected when deployed to Tomcat and that any nuances can be caught early.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top