---
documentID: "51dae1e1c8f06af3d99df3dc330b381c451df9209525fb03ee5331f3ada1583e"
docname: "plugins/binaryninja/dwarf/index"
title: "BinaryNinja - DWARF Plugin - LIEF Documentation"
description: "BinaryNinja - DWARF Plugin. To export DWARF information from a BinaryNinja BinaryView representation, use the menu: Plugins > LIEF > Export as DWARF"
canonical: "https://lief.re/doc/latest/plugins/binaryninja/dwarf/index.html"
markdownURL: "https://lief.re/doc/latest/plugins/binaryninja/dwarf/index.md"
documentationVersion: "2.0.0"
documentationChannel: "latest"
language: "en"
contentHash: "062b297536c6442449b9f076aa2479cfa5d52ae83c991bce8c40b7fac356d6fd"
---

# [BinaryNinja - DWARF Plugin](<https://lief.re/doc/latest/plugins/binaryninja/dwarf/index.html#binaryninja-dwarf-plugin>)

## [Export as DWARF](<https://lief.re/doc/latest/plugins/binaryninja/dwarf/index.html#export-as-dwarf>)

> **BinaryNinja builtin plugin**
> 
> Binary Ninja already embeds a DWARF export plugin that exposes most of the functionality provided by this plugin. However, this plugin exports additional information, such as stack variables and basic blocks.

To export DWARF information from a BinaryNinja `BinaryView` representation, use the menu: `Plugins > LIEF > Export as DWARF`

![BinaryNinja DWARF exporter](https://lief.re/doc/latest/_static/binaryninja/trigger-dwarf-plugin.webp)  
  

### [Support &amp; Limitations](<https://lief.re/doc/latest/plugins/binaryninja/dwarf/index.html#support-limitations>)

This extension tries to convert most of the information registered in a BinaryView into DWARF structures, but this support is not exhaustive; here is an overview of what is and is not exported.

**BinaryNinja::BinaryView**

- Function
- Data Variables
- Types
- Comments

**BinaryNinja::Function**

- Name
- Address range
- Parameters
- Type of parameters
- Return type
- Stack variables
- Types of stack variables
- Basic Blocks
- Comments

**BinaryNinja::DataVariable**

- Name
- Type
- Address
- Comments

**BinaryNinja::Type**

- `BNTypeClass::VoidTypeClass`
- `BNTypeClass::BoolTypeClass`
- `BNTypeClass::IntegerTypeClass`
- `BNTypeClass::FloatTypeClass`
- `BNTypeClass::PointerTypeClass`
- `BNTypeClass::PointerTypeClass`
- `BNTypeClass::StructureTypeClass`

  - `BNTypeClass::ClassStructureType`
  - `BNTypeClass::UnionStructureType`
  - `BNTypeClass::StructStructureType`
- `BNTypeClass::EnumerationTypeClass`
- `BNTypeClass::NamedTypeReferenceClass`
- `BNTypeClass::ArrayTypeClass`
- `BNTypeClass::WideCharTypeClass`
- `BNTypeClass::FunctionTypeClass`
- `BNTypeClass::VarArgsTypeClass`
- `BNTypeClass::ValueTypeClass`

Any types not mentioned here are not supported.
