Skip to content

Commit

Permalink
lldb pretty printers for relay
Browse files Browse the repository at this point in the history
A set of lldb debugger pretty printers that use the relay
PrettyPrinter functionality to display data structures in
the lldb debugger.
- Put the dot.lldbinit file in your home directory as .lldbinit.
- Update the file to point to the pretty printer script tvm.py
- Restart lldb
  • Loading branch information
Leo-arm committed Dec 4, 2019
1 parent 3c9a3ee commit ac36d80
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
21 changes: 21 additions & 0 deletions apps/lldb/dot.lldbinit.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# lldb pretty printer support for relay
# Put this file in your home directory as .lldbinit
# Update the line below to point to the pretty printer script
command script import /path/to/tvm/apps/lldb/tvm.py
File renamed without changes.
3 changes: 0 additions & 3 deletions python/tvm/contrib/lldb/dot.lldbinit

This file was deleted.

0 comments on commit ac36d80

Please sign in to comment.