Jump to content

Swarm as a crash log Source Server - View file at specific line

swarm file display revision

  • Please log in to reply
2 replies to this topic

#1 PeteS


    Advanced Member

  • Members
  • PipPipPip
  • 62 posts

Posted 29 January 2015 - 04:37 PM

Is there currently a way to specify a line number when displaying a file using the swarm 'files' hyperlink? This line would be centered in the window, and preferably even highlighted.

When we get user crash logs, we symbolize the call stack so we can see the files and line numbers in the call stack of the crash. I'd like to be able to add a hyperlink to:


I like to add something like ?line=1234 to the end of the link. This would allow us to immediately display the contents of //depot/somePath/someFile at for the revision built into the product, at the offending line number.

It would also be nice to be able to annotoate or initiate a review from that view, but that could be a separate enhancement.

#2 wenslayer



  • Members
  • Pip
  • 1 posts

Posted 29 January 2015 - 05:10 PM

Hi Pete, you can append the suffix "#Lnn-mm" to get what you're looking for.

E.g.: https://swarm.worksh.../pom.xml#L65-69


#3 PeteS


    Advanced Member

  • Members
  • PipPipPip
  • 62 posts

Posted 04 February 2015 - 02:03 PM

Excellent Marc, that even highlights the line! Sweet!

Also tagged with one or more of these keywords: swarm, file, display, revision

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users